body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', Helvetica, sans-serif;
    background: #fafafa;
    box-sizing: border-box;
}
.scrollTop {
    position: fixed;
    right: 10px;
    border-radius: 3px;
    z-index: 99999;
    font-weight: 600;
    bottom: 110px;
    background-color: rgba(0, 0, 0, .5);
    padding: 5px 7px;
    opacity: 0;
    transition: all .4s ease-in-out 0s;
}
.scrollTop a {
    font-size: 16px;
    text-decoration: none;
    color: #fff;
}
.color-5 {
    background: linear-gradient(-45deg, #000000, #0a0a0a, #540e2b, #4a0606, #7a022b, #000000, #000000);
    background-size: 400% 400%;
    animation: gradient 5s ease infinite;
    border-radius: 20px;
    padding: 15px 0;
    transition: all .3s;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    border: 1px solid #fff;
    color: #fff;
    display: inline-block;
    margin-top: 20px;
}
 @keyframes gradient {
        0% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
        100% {
            background-position: 0% 50%;
        }
    }

    @media screen and (max-height: 992px) {
 
}
.back a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
}
.error-msg{background: #fbeeee;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0 35px 0;
    font-size: 14px;
    text-align: center;
    line-height: 20px;}
.status-msg{background: #eefbf0;
    padding: 15px;
    line-height: 20px;
    font-size: 14px;
    margin: 20px 10px 35px 10px;
    border-radius: 10px;
    text-align: center;}
.head-box{margin: 40px auto 0 auto;
    width: 90%;
    max-width: 600px;}
.au-page {
  --au-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --au-ink: #212121;
  --au-muted: #6b6b6b;
  --au-line: #e2e2e2;
  --au-line-strong: #b8b8b8;
  --au-surface: #ffffff;

  --au-accent: #7b2d3e;
  --au-accent-hover: #64243a;

  --au-ok-soft: #eaf5f4;
  --au-ok-line: #b7dbd8;
  --au-ok-ink: #135a54;

  --au-warn-soft: #fff6df;
  --au-warn-line: #ebd08a;
  --au-warn-ink: #6b4a00;

  --au-danger: #b42318;
  --au-danger-soft: #fdeceb;
  --au-danger-line: #efb8b2;
  --au-danger-ink: #7a1d15;

  --au-radius: 8px;
  --au-radius-lg: 10px;

width: 90%;
    max-width: 600px;
  margin: 0 auto;
  padding: 40px 0 56px;
  box-sizing: border-box;
  font-family: var(--au-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--au-ink);
  text-align: left;
}

.au-page *,
.au-page *::before,
.au-page *::after {
  box-sizing: border-box;
}

.au-page .au-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* --------------------------------------------------------------------------
   Карта
   -------------------------------------------------------------------------- */



.au-page .au-title {
  margin: 0 0 4px;
  font-family: var(--au-font);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--au-ink);
}

.au-page .au-sub {
  margin: 0 0 30px;
  font-size: 14px;
  color: var(--au-muted);
}

/* --------------------------------------------------------------------------
   Табове (Вход / Регистрация) — чист CSS с radio
   -------------------------------------------------------------------------- */
.grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.au-page .au-tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
}
.down-register {
    display: flex;
    align-items: center;
    justify-content: center;
        margin: 25px 0 0 0;
    gap: 20px;
    flex-direction: column;
}
.h-px {
    height: 1px;
    background-color: #ccc;
    border: none;
}
.or {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    font-family: sans-serif;
}
.register-button {
    border-radius: 20px;
    cursor: pointer;
    padding: 15px 0;
    width: 100%;
    border: 1px solid #a1a1a1;
    margin: 0 0 100px 0;
    transition: all .3s;
    font-size: 14px;
    text-align: center;
}
/*  */
.au-page .au-tablist {
  display: flex;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--au-line);
}

.au-page .au-tablist label {
  flex: 1 1 50%;
  margin: 0 0 -1px;
  padding: 12px 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--au-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.au-page .au-tablist label:hover {
  color: var(--au-ink);
}

.au-page #tab1:checked ~ .au-tablist label[for="tab1"],
.au-page #tab2:checked ~ .au-tablist label[for="tab2"] {
  color: var(--au-accent);
  border-bottom-color: var(--au-accent);
}

.au-page #tab1:focus-visible ~ .au-tablist label[for="tab1"],
.au-page #tab2:focus-visible ~ .au-tablist label[for="tab2"] {
  outline: 2px solid var(--au-accent);
  outline-offset: -2px;
}

.au-page .au-panel {
  display: none;
}

.au-page #tab1:checked ~ #content1,
.au-page #tab2:checked ~ #content2 {
  display: block;
}

/* --------------------------------------------------------------------------
   Съобщения (#parse е контейнерът, който ползва и front.js)
   -------------------------------------------------------------------------- */

.au-page .au-status {
  margin: 0 0 20px;
}

.au-page .au-status:empty {
  display: none;
}

.au-page .au-msg {
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  border: 1px solid;
  border-radius: var(--au-radius);
}

.au-page .au-msg--error {
  color: var(--au-danger-ink);
  background: var(--au-danger-soft);
  border-color: var(--au-danger-line);
}

.au-page .au-msg--warn {
  color: var(--au-warn-ink);
  background: var(--au-warn-soft);
  border-color: var(--au-warn-line);
}

.au-page .au-msg--success {
  color: var(--au-ok-ink);
  background: var(--au-ok-soft);
  border-color: var(--au-ok-line);
}

.au-page .au-msg a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.au-page .au-activated:empty {
  display: none;
}

.au-page .au-activated {
  margin: 0 0 20px;
}

/* --------------------------------------------------------------------------
   Полета
   -------------------------------------------------------------------------- */

.au-page .au-field {
  margin: 0 0 25px;
}

.au-page .au-label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--au-ink);
}

.au-page .au-opt {
  font-weight: 400;
  color: var(--au-muted);
}

.au-page .au-req {
  margin-left: 2px;
  color: var(--au-accent);
}

.au-page .au-help {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--au-muted);
}

.au-page .au-input,
.au-page .au-select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  font-family: var(--au-font);
  font-size: 16px; /* 16px, за да не зумва iOS при фокус */
  line-height: 1.4;
  color: var(--au-ink);
  background-color: var(--au-surface);
  border: 1px solid var(--au-line-strong);
  border-radius: var(--au-radius);
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s;
}

.au-page .au-input::placeholder {
  color: #8f8f8f;
  opacity: 1;
}

.au-page .au-input:hover,
.au-page .au-select:hover {
  border-color: #8f8f8f;
}

.au-page .au-input:focus,
.au-page .au-select:focus {
  outline: 1px solid var(--au-accent);
  outline-offset: 0;
  border-color: var(--au-accent);
}

.au-page .au-select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b6b6b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

/* парола с бутон "Покажи" */
.au-page .au-pass {
  position: relative;
}

.au-page .au-pass .au-input {
  padding-right: 84px;
}

.au-page .au-pass-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  min-height: 36px;
  padding: 0 12px;
  font-family: var(--au-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--au-accent);
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.au-page .au-pass-toggle:focus-visible {
  outline: 2px solid var(--au-accent);
}

/* две колони на широк екран (паролите) */
.au-page .au-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 520px) {
  .au-page .au-grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
  }
}

/* --------------------------------------------------------------------------
   Отметки и линкове
   -------------------------------------------------------------------------- */

.au-page .au-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 20px;
}

.au-page .au-check {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
    background: #f7f6ec;
    padding: 10px 10px;
    border-radius: 7px;
    border: 1px solid #e3e1cd;
}
.au-page .au-check-remember {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
}

.au-page .au-check input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
        border-radius: 5px;
    margin: 1px 0 0;
    accent-color: var(--au-accent);
    cursor: pointer;
    border: 1px solid var(--au-accent);
}
.au-page .au-check-remember input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
        border-radius: 5px;
    margin: 1px 0 0;
    accent-color: var(--au-accent);
    cursor: pointer;
    border: 1px solid var(--au-accent);
}
.au-page .au-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--au-accent);
  text-decoration: none;
}

.au-page .au-link:hover {
  text-decoration: underline;
}

.au-page .au-check a {
  color: var(--au-accent);
  font-weight: 600;
}
.au-page .au-check-remeber a {
  color: var(--au-accent);
  font-weight: 600;
}
.au-page .au-back {
  margin: 18px 0 0;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Бутони
   -------------------------------------------------------------------------- */

.au-page .au-submit,
.au-page .au-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 0 24px;
    font-family: var(--au-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.au-page .au-submit,
.au-page .au-btn--primary {
  color: #fff;
  background: #292d42;
  border: 0;
}

.au-page .au-submit:hover,
.au-page .au-btn--primary:hover {
  background: var(--au-accent-hover);
}

.au-page .au-btn {
  color: var(--au-ink);
  background: var(--au-surface);
  border: 1px solid var(--au-line-strong);
}

.au-page .au-btn:hover {
  border-color: var(--au-ink);
}

.au-page .au-btn--primary {
  border: 0;
}

.au-page .au-submit:focus-visible,
.au-page .au-btn:focus-visible {
  outline: 2px solid var(--au-accent);
  outline-offset: 2px;
}

.au-page .au-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Аватар
   -------------------------------------------------------------------------- */

.au-page .au-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
}

.au-page .au-avatar-field {
  position: relative;
}

.au-page .au-avatar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 12px;
  background: #fafafa;
  border: 1px dashed var(--au-line-strong);
  border-radius: var(--au-radius-lg);
  cursor: pointer;
  transition: border-color 0.15s;
}

.au-page .au-avatar:hover {
  border-color: var(--au-accent);
}

.au-page .au-file-input:focus-visible + .au-avatar {
  outline: 2px solid var(--au-accent);
  outline-offset: 2px;
}

.au-page .au-avatar-img {
  display: block;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  margin: 0;
  object-fit: cover;
  background: #f0f0f0;
  border: 1px solid var(--au-line);
  border-radius: 50%;
}

.au-page .au-avatar-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.au-page .au-avatar-title {
  font-size: 14px;
  font-weight: 600;
}

.au-page .au-avatar-action {
  font-size: 14px;
  font-weight: 600;
  color: var(--au-accent);
}

/* --------------------------------------------------------------------------
   Забравена парола: скрита по подразбиране (front.js и нашият скрипт я
   показват с jQuery .show())
   -------------------------------------------------------------------------- */

.au-page #lost_pass {
  display: none;
}

/* --------------------------------------------------------------------------
   Малки екрани
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {



  .au-page .au-title {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .au-page *,
  .au-page *::before,
  .au-page *::after {
    transition: none !important;
  }
}