* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    color: #111827;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.auth-header {
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #111827;
    text-decoration: none;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-dots {
    display: none;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}
.auth-brand-mark { width: 42px; height: 42px; object-fit: contain; flex: none; }
.auth-card-brand {
    width: 132px;
    height: 88px;
    display: block;
    margin: 0 auto 12px;
    object-fit: contain;
}

.logo-dots span {
    width: 4px;
    height: 4px;
    display: block;
    border-radius: 50%;
    background: #2563eb;
}

.logo-dots span:nth-child(2) {
    background: #60a5fa;
}

.logo-dots span:nth-child(3) {
    background: #93c5fd;
}

.auth-navigation {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.header-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.header-link:active {
    color: #2563eb;
    font-weight: 600;
}

.resort-link {
    color: #2563eb;
    border-radius: 9px;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.resort-link:hover,
.resort-link:focus-visible {
    background: #eff6ff;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.resort-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.header-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid #2563eb;
    border-radius: 8px;
    background: #ffffff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.header-button:hover,
.header-button.active {
    background: #2563eb;
    color: #ffffff;
}

.header-button:hover {
    transform: translateY(-1px);
}

.header-menu {
    width: 36px;
    height: 36px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
}

.header-menu svg {
    width: 17px;
    height: 17px;
}

.auth-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 36px 20px 48px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 28px 34px 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
}

.auth-card-header {
    margin-bottom: 18px;
    text-align: center;
}

.auth-card-header h1 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.4px;
}

.auth-card-header p {
    max-width: 350px;
    margin: 0 auto;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.social-login {
    width: 100%;
}

.social-button {
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.social-button:hover {
    background: #f9fafc;
    border-color: #9ca3af;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.social-button:active {
    transform: translateY(1px);
}

.social-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #4285f4;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 16px;
}

.auth-divider span {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

.signup-form {
    width: 100%;
}

#emailStep,
#otpStep,
#accountStep {
    width: 100%;
}

#otpStep > p {
    margin: 0 0 16px;
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
}

#verificationEmail {
    color: #111827;
    font-weight: 600;
    overflow-wrap: anywhere;
}

#resendOtpButton {
    height: 44px;
    margin-top: 10px;
}

.form-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-group {
    width: 100%;
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    height: 46px;
    display: block;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:hover {
    border-color: #9ca3af;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 42px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 6px;
    transform: translateY(-50%);
    background: transparent;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.password-toggle:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.password-toggle svg {
    width: 16px;
    height: 16px;
}

.password-hint {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
}

.terms-checkbox {
    width: 100%;
    margin: 2px 0 16px;
}

.terms-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.terms-checkbox input {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin: 2px 0 0;
    accent-color: #2563eb;
    cursor: pointer;
}

.terms-checkbox span {
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.5;
}

.terms-checkbox a {
    color: #2563eb;
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

.continue-button {
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.continue-button:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

.continue-button:active {
    transform: translateY(0);
}

.continue-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#signupStatus {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
}

#signupStatus:empty {
    display: none;
}

#signupStatus[data-state="success"] {
    background: #ecfdf5;
    color: #047857;
}

#signupStatus[data-state="error"] {
    background: #fef2f2;
    color: #b91c1c;
}

.signup-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 18px;
    color: #64748b;
    font-size: 13px;
}

.signup-prompt a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.signup-prompt a:hover {
    text-decoration: underline;
}

.terms-text {
    margin: 14px 0 0;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.terms-text a {
    color: #64748b;
    text-decoration: none;
}

.terms-text a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.auth-footer {
    width: 100%;
    padding: 30px 38px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-column h3 {
    margin: 0 0 4px;
    color: #374151;
    font-size: 18px;
    font-weight: 700;
}

.footer-column a {
    width: fit-content;
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #2563eb;
}

@media (max-width: 850px) {
    .auth-header {
        padding: 0 24px;
    }

    .auth-navigation {
        gap: 14px;
    }

    .auth-footer {
        padding: 28px 24px;
    }
}

@media (max-width: 650px) {
    .auth-header {
        height: 60px;
        padding: 0 16px;
    }

    .auth-navigation {
        gap: 8px;
    }

    .resort-link {
        display: none;
    }

    .header-link:not(.resort-link) {
        display: none;
    }

    .header-button {
        min-height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

    .header-menu {
        display: flex;
    }

    .auth-main {
        padding: 30px 15px 40px;
    }

    .auth-card {
        max-width: 100%;
        padding: 26px 20px 24px;
        border-radius: 12px;
    }

    .auth-card h1 {
        font-size: 21px;
    }

    .auth-card-header p {
        font-size: 13px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-footer {
        padding: 26px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 400px) {
    .logo-text {
        font-size: 17px;
    }

    .auth-card {
        padding: 23px 17px 22px;
    }

    .auth-card-header h1 {
        font-size: 20px;
    }

    .social-button {
        font-size: 13px;
    }

    .terms-checkbox span {
        font-size: 11px;
    }
}
