* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    color: #1e293b;
}

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background-color: #dbeafe;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.45) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(147, 197, 253, 0.55) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.25) 0%, transparent 55%),
        repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0 8px, transparent 8px 24px);
}

.auth-card {
    display: flex;
    width: 100%;
    max-width: 920px;
    min-height: 480px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(30, 64, 175, 0.18);
}

.auth-visual {
    flex: 1 1 42%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 55%, #bfdbfe 100%);
}

.auth-visual-img,
.auth-visual-svg {
    width: 100%;
    max-width: 340px;
    height: auto;
    display: block;
    object-fit: contain;
}

.auth-main {
    flex: 1 1 58%;
    min-width: 0;
    padding: 40px 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand {
    font-size: 32px;
    font-weight: 700;
    color: #1e3a8a;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
    line-height: 1.2;
}

.auth-form-hint {
    font-size: 13px;
    color: #64748b;
    margin: -18px 0 20px;
    line-height: 1.5;
}

.login-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.45;
}

.login-success {
    background: #ecfdf5;
    color: #047857;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 16px;
    line-height: 1.35;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.field input::placeholder {
    color: #94a3b8;
}

.field input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.field-code {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.field-code input {
    flex: 1;
    min-width: 0;
}

.btn-code {
    flex-shrink: 0;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0 14px;
    min-width: 112px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.btn-code:hover:not(:disabled) {
    background: #dbeafe;
    border-color: #93c5fd;
}

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

.login-extra {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 2px 0 18px;
    font-size: 13px;
}

.login-extra a {
    color: #2563eb;
    text-decoration: none;
}

.login-extra a:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 14px 16px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s, transform 0.12s;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.btn-login:hover {
    background: #2563eb;
}

.btn-login:active {
    transform: translateY(1px);
}

a.btn-login {
    display: block;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
}

a.btn-login:hover {
    color: #fff;
}

.login-register {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 14px;
}

.login-register a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.login-register a:hover {
    text-decoration: underline;
}

.sgz-captcha-host {
    position: fixed;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 820px) {
    .auth-page {
        padding: 12px;
        align-items: flex-start;
    }

    .auth-page--no-mobile-visual .auth-visual {
        display: none;
    }

    .auth-page--no-mobile-visual .auth-card {
        max-width: 440px;
    }

    .auth-card {
        flex-direction: column;
        min-height: 0;
        border-radius: 20px;
        max-width: 440px;
    }

    .auth-visual {
        flex: none;
        min-height: 0;
        max-height: 148px;
        padding: 12px 20px 6px;
        overflow: hidden;
    }

    .auth-visual-img,
    .auth-visual-svg {
        max-width: min(200px, 72vw);
        max-height: 128px;
        width: auto;
        height: auto;
        margin: 0 auto;
    }

    .auth-main {
        padding: 24px 22px 28px;
    }

    .auth-brand {
        font-size: 26px;
        margin-bottom: 22px;
        text-align: center;
    }

    .auth-form-hint {
        text-align: center;
        margin-top: -12px;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 10px;
    }

    .auth-card {
        border-radius: 16px;
        box-shadow: 0 16px 40px rgba(30, 64, 175, 0.15);
    }

    .auth-visual {
        max-height: 118px;
        padding: 8px 16px 4px;
    }

    .auth-visual-img,
    .auth-visual-svg {
        max-width: min(168px, 64vw);
        max-height: 100px;
    }

    .auth-main {
        padding: 20px 18px 24px;
    }

    .auth-brand {
        font-size: 24px;
    }

    .field input {
        min-height: 48px;
        padding: 14px 14px;
    }

    .field-code {
        flex-direction: column;
    }

    .btn-code {
        min-height: 46px;
        width: 100%;
    }

    .btn-login {
        min-height: 48px;
        font-size: 16px;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    .auth-page {
        align-items: flex-start;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .auth-card {
        flex-direction: row;
        max-width: 960px;
        min-height: 0;
    }

    .auth-visual {
        max-height: none;
        min-height: 0;
        padding: 16px;
    }

    .auth-visual-img,
    .auth-visual-svg {
        max-width: 200px;
    }

    .auth-main {
        padding: 16px 24px;
    }

    .auth-brand {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .field {
        margin-bottom: 10px;
    }
}
