/* Auth pages — cyan premium theme */

:root {
    --auth-header-height: 3.5rem;
}

.auth-minimal-body {
    margin: 0;
    min-height: 100vh;
    color: #e8f7ff;
    background: #0e2742;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.auth-minimal-body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background: url('/assets/hero-pattern/background-effect.webp') center / cover no-repeat;
}

.auth-minimal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: var(--auth-header-height);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: rgba(14, 39, 66, 0.96);
    border-bottom: 1px solid rgba(46, 199, 255, 0.2);
}

.auth-minimal-header__logo {
    display: inline-flex;
    text-decoration: none;
}

.auth-minimal-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-top: var(--auth-header-height);
    box-sizing: border-box;
}

.site-logo-img {
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.auth-page {
    --auth-accent: #2ec7ff;
    --auth-accent-dark: #1496e6;
    --auth-gold: #2ec7ff;
    --auth-surface: rgba(14, 39, 66, 0.94);
    --auth-border: rgba(46, 199, 255, 0.28);
    --auth-text: #e8f7ff;
    --auth-muted: #8eb4c7;
    min-height: calc(100vh - var(--auth-header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.auth-page__inner {
    width: 100%;
    max-width: 28rem;
}

.auth-page__inner--wide {
    max-width: 42rem;
}

.auth-form-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-remember-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #c5dce8;
}

.auth-field-error {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #fca5a5;
}

.auth-status-ok {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #86efac;
    text-align: center;
}

.auth-page #snowWrap {
    display: none !important;
}

.auth-card {
    position: relative;
    overflow: visible;
    border-radius: 1.25rem;
    padding: 2rem;
    background: linear-gradient(165deg, rgba(18, 50, 79, 0.98), rgba(14, 39, 66, 0.98));
    border: 1px solid var(--auth-border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(46, 199, 255, 0.12);
}

.auth-card__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(46, 199, 255, 0.22), rgba(46, 199, 255, 0.06));
    border: 1px solid rgba(46, 199, 255, 0.4);
    color: #2ec7ff;
    box-shadow: 0 0 24px rgba(46, 199, 255, 0.18);
}

.auth-card__title {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    background: linear-gradient(90deg, #ffffff 0%, #7adfff 45%, #2ec7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.auth-card__subtitle {
    color: var(--auth-muted);
    font-size: 0.95rem;
}

.auth-card__head {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-btn.w-full {
    width: 100%;
    padding: 0.75rem 1rem;
    cursor: pointer;
}

.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-step__dot {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    color: var(--auth-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.auth-step__dot.is-active {
    background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-dark));
    color: #06131c;
    border-color: transparent;
    box-shadow: 0 0 16px rgba(46, 199, 255, 0.35);
}

.auth-step__dot.is-done {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.35);
}

.auth-step__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--auth-muted);
}

.auth-step__label.is-active {
    color: var(--auth-accent);
}

.auth-step__line {
    width: 2.5rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-alert {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #fecaca;
    font-size: 0.875rem;
}

.auth-alert--info {
    background: rgba(46, 199, 255, 0.1);
    border-color: rgba(46, 199, 255, 0.25);
    color: #c8f4ff;
}

.auth-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #c5dce8;
    margin-bottom: 0.35rem;
}

.auth-field-hint {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--auth-muted);
    line-height: 1.35;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form-step {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hidden {
    display: none !important;
}

.auth-form-step.hidden {
    display: none !important;
}

.auth-alert.hidden {
    display: none !important;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .auth-grid--2 {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

.auth-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.auth-terms-row label {
    font-size: 0.875rem;
    color: #c5dce8;
    line-height: 1.5;
}

.auth-terms-row .auth-checkbox {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.auth-turnstile {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    min-height: 70px;
}

.auth-turnstile-loading {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: #8eb4c7;
    text-align: center;
}

.auth-step-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    padding-top: 0.25rem;
    position: relative;
    z-index: 3;
}

.auth-step-actions .auth-btn--next {
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
    flex: 0 0 auto;
    justify-content: center;
}

.auth-step-actions--split {
    flex-direction: column;
    gap: 0.65rem;
}

@media (min-width: 640px) {
    .auth-step-actions--split {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .auth-step-actions--split .auth-btn--next:last-child {
        margin-left: auto;
    }
}

.auth-btn--next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.48rem 0.88rem !important;
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
}

.auth-field label .req {
    color: #f87171;
}

.auth-input,
.auth-select {
    width: 100%;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(46, 199, 255, 0.16);
    color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    box-sizing: border-box;
    min-height: 2.875rem;
}

.auth-input--date {
    width: 100%;
    display: block;
    box-sizing: border-box;
    min-height: 2.875rem;
    color-scheme: dark;
    line-height: 1.25;
    -webkit-appearance: none;
    appearance: none;
}

.auth-input--date::-webkit-date-and-time-value {
    text-align: left;
    min-height: 1.25rem;
}

.auth-input--date::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.85;
    filter: invert(78%) sepia(52%) saturate(620%) hue-rotate(358deg) brightness(103%) contrast(101%);
}

.auth-input--date:invalid {
    color: rgba(142, 180, 199, 0.75);
}

.auth-select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    box-sizing: border-box;
    min-height: 2.875rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.auth-select-wrap {
    position: relative;
}

.auth-select-wrap::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--auth-muted);
    border-bottom: 2px solid var(--auth-muted);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.auth-select option {
    background: #0e2742;
    color: #fff;
}

.auth-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    color: var(--auth-muted);
}

.auth-select.is-invalid {
    border-color: rgba(248, 113, 113, 0.65);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.auth-input::placeholder {
    color: rgba(142, 180, 199, 0.65);
}

.auth-input:focus,
.auth-select:focus {
    outline: none;
    border-color: rgba(46, 199, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(46, 199, 255, 0.12);
}

.auth-input.is-invalid {
    border-color: rgba(248, 113, 113, 0.65);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.auth-page button:not(.auth-btn--ghost),
.auth-page .auth-btn:not(.auth-btn--ghost) {
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-dark) 100%) !important;
    color: #06131c !important;
    border: none !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 20px rgba(46, 199, 255, 0.25) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

.auth-page button:not(.auth-btn--ghost):hover,
.auth-page .auth-btn:not(.auth-btn--ghost):hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 12px 28px rgba(46, 199, 255, 0.32) !important;
}

.auth-page .auth-btn--ghost,
.auth-page button.auth-btn--ghost {
    background: rgba(18, 50, 79, 0.85) !important;
    color: #e8f7ff !important;
    border: 1px solid rgba(46, 199, 255, 0.4) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    filter: none !important;
}

.auth-page .auth-btn--ghost:hover,
.auth-page button.auth-btn--ghost:hover {
    color: #fff !important;
    border-color: rgba(46, 199, 255, 0.65) !important;
    background: rgba(46, 199, 255, 0.14) !important;
    box-shadow: 0 6px 18px rgba(46, 199, 255, 0.18) !important;
    transform: translateY(-1px);
    filter: none !important;
}

.auth-link {
    color: var(--auth-accent);
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #fff;
}

.auth-checkbox {
    accent-color: var(--auth-accent);
}

.auth-footer-note {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--auth-muted);
    font-size: 0.9rem;
}

.auth-quick-links {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-quick-links__title {
    text-align: center;
    font-size: 0.75rem;
    color: var(--auth-muted);
    margin-bottom: 0.75rem;
}

.auth-quick-links__row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-social {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.65rem;
    font-size: 0.8rem;
    border: 1px solid rgba(46, 199, 255, 0.18);
    background: rgba(46, 199, 255, 0.06);
    color: var(--auth-accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-social:hover {
    background: rgba(46, 199, 255, 0.12);
    border-color: rgba(46, 199, 255, 0.35);
    color: #fff;
}

@media (max-width: 768px) {
    .auth-page {
        align-items: flex-start;
        padding-top: 0.5rem;
        padding-bottom: 0.75rem;
        font-size: 14px;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .auth-card {
        padding: 0.85rem 0.75rem;
        border-radius: 0.85rem;
    }

    .auth-card__icon {
        width: 2.15rem;
        height: 2.15rem;
        margin-bottom: 0.5rem;
        border-radius: 0.65rem;
    }

    .auth-card__icon svg {
        width: 18px;
        height: 18px;
    }

    .auth-card__title {
        font-size: 1.28rem;
        margin-bottom: 0.15rem;
        line-height: 1.2;
    }

    .auth-card__subtitle {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .auth-steps {
        margin-top: 0.65rem;
        gap: 0.5rem;
    }

    .auth-step__dot {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.68rem;
    }

    .auth-step__line {
        width: 1.5rem;
    }

    .auth-step__label {
        display: none;
    }

    .auth-form {
        gap: 0.55rem;
    }

    .auth-form-step {
        gap: 0.5rem;
    }

    .auth-form-step .grid {
        gap: 0.5rem !important;
    }

    .auth-field label {
        font-size: 0.72rem;
        margin-bottom: 0.22rem;
    }

    .auth-field-hint {
        font-size: 0.64rem;
        margin-top: 0.22rem;
    }

    .auth-input,
    .auth-select {
        padding: 0.48rem 0.68rem;
        font-size: 16px;
        border-radius: 0.58rem;
        min-height: 2.35rem;
    }

    .auth-input--date {
        min-height: 2.35rem;
    }

    .auth-btn--next {
        padding: 0.4rem 0.68rem !important;
        font-size: 0.72rem !important;
    }

    .auth-step-actions {
        margin-top: 0.35rem;
        margin-bottom: 0.45rem;
    }

    .auth-footer-note {
        margin-top: 0.75rem;
        font-size: 0.76rem;
    }

    .auth-alert {
        margin-bottom: 0.65rem;
        padding: 0.55rem 0.68rem;
        font-size: 0.72rem;
    }

    .auth-quick-links {
        margin-top: 0.75rem;
        padding-top: 0.65rem;
    }

    .auth-quick-links__title {
        font-size: 0.68rem;
        margin-bottom: 0.55rem;
    }

    .auth-social {
        padding: 0.38rem 0.65rem;
        font-size: 0.72rem;
    }

    .auth-page .auth-checkbox + label,
    .auth-page label.text-sm {
        font-size: 0.72rem !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 390px) {
    .auth-page {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 13px;
    }

    .auth-card {
        padding: 0.72rem 0.62rem;
    }

    .auth-card__title {
        font-size: 1.18rem;
    }

    .auth-input,
    .auth-select {
        min-height: 2.2rem;
        padding: 0.42rem 0.6rem;
    }

    .auth-input--date {
        min-height: 2.2rem;
    }
}

/* ===== authIce1: force marina ice (no gold) ===== */
.auth-page {
  --auth-accent: #2ec7ff !important;
  --auth-accent-dark: #1496e6 !important;
  --auth-gold: #2ec7ff !important;
  --auth-border: rgba(46, 199, 255, 0.28) !important;
}
.auth-card {
  border-color: rgba(46, 199, 255, 0.32) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 36px rgba(46, 199, 255, 0.12) !important;
}
.auth-card__icon {
  color: #2ec7ff !important;
  border-color: rgba(46, 199, 255, 0.45) !important;
  background: linear-gradient(135deg, rgba(46, 199, 255, 0.22), rgba(46, 199, 255, 0.06)) !important;
  box-shadow: 0 0 24px rgba(46, 199, 255, 0.18) !important;
}
.auth-card__title {
  background: linear-gradient(90deg, #ffffff 0%, #7adfff 45%, #2ec7ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}
.auth-step__dot.is-active {
  background: linear-gradient(135deg, #2ec7ff, #1496e6) !important;
  color: #021018 !important;
  border-color: transparent !important;
  box-shadow: 0 0 16px rgba(46, 199, 255, 0.45) !important;
}
.auth-step__label.is-active {
  color: #2ec7ff !important;
}
.auth-input,
.auth-select {
  border-color: rgba(46, 199, 255, 0.22) !important;
}
.auth-input:focus,
.auth-select:focus {
  border-color: rgba(46, 199, 255, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(46, 199, 255, 0.16) !important;
}
.auth-page button:not(.auth-btn--ghost),
.auth-page .auth-btn:not(.auth-btn--ghost),
.auth-page button.auth-btn,
.auth-page .auth-btn {
  background: linear-gradient(135deg, #2ec7ff 0%, #1496e6 55%, #0b6fad 100%) !important;
  color: #021018 !important;
  border: none !important;
  box-shadow: 0 8px 20px rgba(46, 199, 255, 0.28) !important;
}
.auth-page button:not(.auth-btn--ghost):hover,
.auth-page .auth-btn:not(.auth-btn--ghost):hover {
  box-shadow: 0 12px 28px rgba(46, 199, 255, 0.36) !important;
  filter: brightness(1.05);
}
.auth-page .auth-btn--ghost,
.auth-page button.auth-btn--ghost {
  background: rgba(18, 50, 79, 0.85) !important;
  color: #e8f7ff !important;
  border: 1px solid rgba(46, 199, 255, 0.4) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}
.auth-page .auth-btn--ghost:hover,
.auth-page button.auth-btn--ghost:hover {
  border-color: rgba(46, 199, 255, 0.65) !important;
  background: rgba(46, 199, 255, 0.14) !important;
  box-shadow: 0 6px 18px rgba(46, 199, 255, 0.2) !important;
}
.auth-link {
  color: #2ec7ff !important;
}
.auth-link:hover {
  color: #ffffff !important;
}
.auth-checkbox {
  accent-color: #2ec7ff !important;
}
.auth-alert--info {
  background: rgba(46, 199, 255, 0.1) !important;
  border-color: rgba(46, 199, 255, 0.28) !important;
  color: #c8f4ff !important;
}
.auth-minimal-header {
  border-bottom-color: rgba(46, 199, 255, 0.22) !important;
}
.auth-quick-links a,
.auth-footer-note a {
  color: #2ec7ff !important;
}
