/**
 * ============================================================
 * CtrlEat Official Shopping Website
 * ============================================================
 * CtrlEat 正式版购物网站
 * 版权归天河星雨工作室[thxymc Studio] thxymc.com所有
 * Copyright © 2026 thxymc.com. All rights reserved.
 * 网页由天河星雨工作室制作 thxymc.com
 * ！！未经允许禁止公开源码！！
 * ============================================================
 */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    background:
        radial-gradient(circle at 15% 15%, rgba(34, 197, 94, 0.18), transparent 34%),
        radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.16), transparent 30%),
        linear-gradient(135deg, #f8fafc, #ecfdf5);
    color: #0f172a;
}

.auth-page {
    width: min(1120px, 92vw);
    min-height: calc(100vh - 110px);
    margin: 0 auto;
    padding: 54px 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 32px;
    align-items: center;
}

.auth-hero {
    padding: 30px 0;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-weight: 1000;
    text-decoration: none;
    margin-bottom: 24px;
}

.auth-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.auth-hero p {
    max-width: 620px;
    margin: 0;
    color: #475569;
    font-size: 1.08rem;
    line-height: 1.8;
}

.auth-points {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.auth-points span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: #334155;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.auth-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 30px;
    padding: 28px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
}

.auth-card-head {
    margin-bottom: 20px;
}

.auth-card-head h2 {
    margin: 0 0 8px;
    font-size: 1.8rem;
}

.auth-card-head p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.auth-card-head a {
    color: #16a34a;
    font-weight: 900;
    text-decoration: none;
}

.auth-form {
    display: grid;
    gap: 15px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 16px;
    padding: 6px;
    border-radius: 18px;
    background: #f1f5f9;
}

.auth-tabs a {
    min-height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    text-decoration: none;
    font-weight: 1000;
    text-align: center;
}

.auth-tabs a.active {
    background: #fff;
    color: #16a34a;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.auth-form label {
    display: grid;
    gap: 7px;
    font-weight: 900;
    color: #334155;
}

.auth-form label span {
    font-size: 0.9rem;
}

.auth-form input {
    width: 100%;
    height: 48px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    padding: 0 14px;
    font-size: 1rem;
    outline: none;
    background: #fff;
    transition: 0.18s ease;
}

.auth-form input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 12px;
    align-items: end;
}

.send-code-btn {
    height: 48px;
    border: 0;
    border-radius: 16px;
    background: #e0f2fe;
    color: #075985;
    font-weight: 1000;
    cursor: pointer;
}

.send-code-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.auth-submit {
    height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: 18px;
    background: #16a34a;
    color: #fff;
    font-size: 1rem;
    font-weight: 1000;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(22, 163, 74, 0.25);
}

.auth-submit:hover {
    background: #15803d;
}

.auth-alert {
    padding: 13px 14px;
    border-radius: 16px;
    margin-bottom: 16px;
    font-weight: 800;
    line-height: 1.6;
}

.auth-alert.error {
    background: #fef2f2;
    color: #dc2626;
}

.auth-alert.success {
    background: #f0fdf4;
    color: #15803d;
}

.auth-note {
    margin: 16px 0 0;
    padding: 13px;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
    line-height: 1.7;
    font-size: 0.9rem;
}

.site-footer {
    width: min(1120px, 92vw);
    margin: 10px auto 22px;
    padding: 16px 10px;
    text-align: center;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.8;
}

.site-footer a {
    color: #16a34a;
    font-weight: 900;
    text-decoration: none;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.94);
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
    z-index: 999;
    max-width: min(92vw, 520px);
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
    .auth-page {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 28px;
    }

    .auth-hero {
        text-align: center;
        padding: 10px 0;
    }

    .auth-hero p {
        margin: 0 auto;
    }

    .auth-points {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .auth-page {
        width: 94vw;
        padding-top: 18px;
    }

    .auth-card {
        padding: 20px;
        border-radius: 24px;
    }

    .auth-hero h1 {
        font-size: 2.2rem;
    }

    .code-row {
        grid-template-columns: 1fr;
    }

    .send-code-btn {
        width: 100%;
    }
}
