html, body {
    background:
        radial-gradient(circle at top left, rgba(26, 115, 232, 0.08), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #f5f7fb 52%, #f8f9fb 100%);
}

.auth-modern-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-modern-page .auth-page {
    width: 100%;
    padding: 28px 18px;
}

.auth-modern-page .auth-wrapper {
    min-height: calc(100vh - 56px);
    align-items: center;
}

.auth-modern-page .auth-container {
    max-width: 1080px;
}

.auth-modern-page .auth-layout {
    display: grid;
    grid-template-columns: minmax(300px, 1.02fr) minmax(380px, 0.98fr);
    gap: 24px;
    align-items: stretch;
}

.auth-brand-panel,
.auth-content-panel {
    border: 1px solid rgba(207, 228, 251, 0.85);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    height: 100%;
}

.auth-brand-panel {
    padding: 36px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at top right, rgba(26, 115, 232, 0.12), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,255,0.96) 100%);
}

.auth-brand-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.auth-brand-home {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.auth-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 0;
    border: 0;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
    object-fit: contain;
}

.auth-brand-site {
    font-size: 13px;
    color: #6b7280;
    letter-spacing: 0.02em;
}

.auth-brand-heading {
    max-width: 28rem;
}

.auth-brand-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #d9e9fb;
    background: #f4f9ff;
    color: #1a73e8;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 18px;
}

.auth-brand-title {
    font-size: 34px;
    line-height: 1.14;
    letter-spacing: -0.03em;
    color: #111827;
    margin: 0 0 14px;
    font-weight: 700;
}

.auth-brand-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #5f6368;
    margin: 0;
    max-width: 30rem;
}

.auth-brand-points {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.auth-brand-point {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: center;
}

.auth-brand-point > div:last-child {
    min-height: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand-point-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef6ff;
    color: #1a73e8;
    border: 1px solid #d7e6f8;
}

.auth-brand-point-icon svg {
    width: 18px;
    height: 18px;
}

.auth-brand-point strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.25;
    margin-bottom: 0;
}

.auth-brand-point span {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: #6b7280;
}

.auth-brand-footer {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
    font-size: 12px;
    color: #9aa0a6;
}

.auth-content-panel {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-modern-page .auth-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    width: 100%;
    max-width: 468px;
    margin: 0 auto;
}

.auth-modern-page .auth-title {
    text-align: left;
    margin-bottom: 24px;
}

.auth-modern-page .auth-title h1 {
    font-size: 28px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #111827;
    margin: 0 0 8px;
}

.auth-modern-page .auth-title p {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
}

.auth-modern-page form {
    width: 100%;
}

.auth-modern-page .auth-tabs {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border: 1px solid #e5edf6;
    border-radius: 16px;
    background: #f8fbff;
    margin-bottom: 26px;
}

.auth-modern-page .auth-tab {
    border-radius: 12px;
    border: 0;
    min-height: 42px;
    color: #6b7280;
    font-weight: 600;
}

.auth-modern-page .auth-tab.active {
    color: #1a73e8;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #d7e6f8;
}

.auth-modern-page .auth-tab.active::after {
    display: none;
}

.auth-modern-page .input-field {
    margin-bottom: 18px;
}

.auth-modern-page .input-field input {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid #d9e2ec;
    background: #fbfcfe;
    color: #111827;
    padding: 14px 16px;
}

.auth-modern-page .input-field label {
    top: 25px;
    transform: translateY(-50%);
}

.auth-modern-page .input-field input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.08);
    background: #ffffff;
    padding: 13px 15px;
}

.auth-modern-page .input-field label {
    color: #6b7280;
}

.auth-modern-page .input-field input:focus + label,
.auth-modern-page .input-field input:not(:placeholder-shown) + label {
    background: #ffffff;
    border-radius: 999px;
}

.auth-modern-page .input-field .toggle-pwd {
    top: 25px;
    transform: translateY(-50%);
    right: 14px;
    color: #7b8794;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-modern-page .input-field .toggle-pwd:hover {
    background: #f3f7fb;
}

.auth-modern-page .input-field .toggle-pwd i {
    font-size: 16px;
}

.auth-modern-page .field-hint {
    color: #8a94a6;
    margin-top: 8px;
    line-height: 1.55;
}

.auth-modern-page .captcha-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.auth-modern-page .captcha-row .input-field {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.auth-modern-page .captcha-img,
.auth-modern-page .code-btn {
    height: 48px;
    border-radius: 14px;
    flex-shrink: 0;
}

.auth-modern-page .captcha-img {
    width: 112px;
    border-color: #d9e2ec;
}

.auth-modern-page .code-btn {
    padding: 0 18px;
    color: #1a73e8;
    border-color: #d9e2ec;
    background: #ffffff;
    font-weight: 600;
    white-space: nowrap;
    min-width: 112px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-modern-page .code-btn:hover:not(:disabled) {
    background: #f5f9ff;
    border-color: #bfd8f8;
}

.auth-modern-page .code-btn:disabled {
    background: #f4f7fb;
    border-color: #dbe4ee;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.auth-modern-page .submit-btn {
    min-height: 48px;
    border-radius: 14px;
    font-weight: 700;
    background: linear-gradient(180deg, #ecf6ff 0%, #dfefff 100%);
    color: #1a73e8;
    border: 0;
    box-shadow: none;
}

.auth-modern-page .submit-btn:hover {
    background: linear-gradient(180deg, #e4f1ff 0%, #d7ebff 100%);
    color: #005fcc;
    box-shadow: none;
}

.auth-modern-page .submit-btn:disabled {
    background: linear-gradient(180deg, #f2f6fb 0%, #eaf0f7 100%);
    color: #8ea2bb;
    cursor: not-allowed;
    box-shadow: none;
}

.auth-modern-page .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(26, 115, 232, 0.18);
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-modern-page .options-row,
.auth-modern-page .agreement {
    color: #6b7280;
}

.auth-modern-page .options-row {
    margin-bottom: 24px;
}

.auth-modern-page .checkbox-wrap input,
.auth-modern-page .agreement input {
    accent-color: #1a73e8;
}

.auth-modern-page .agreement {
    margin-bottom: 22px;
    font-size: 13px;
    line-height: 1.7;
}

.auth-modern-page .agreement label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.auth-modern-page .agreement input {
    margin-right: 0;
    margin-top: 3px;
    flex-shrink: 0;
}

.auth-modern-page .link-text,
.auth-modern-page .agreement a {
    color: #1a73e8;
}

.auth-modern-page .auth-footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-modern-page .copyright {
    margin-top: 18px;
    line-height: 1.6;
}

@media (max-width: 960px) {
    .auth-modern-page .auth-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .auth-brand-panel {
        padding: 24px 22px;
    }

    .auth-brand-footer {
        margin-top: 24px;
    }
}

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

    .auth-brand-panel,
    .auth-content-panel {
        border-radius: 18px;
    }

    .auth-brand-panel {
        padding: 20px 18px;
    }

    .auth-content-panel {
        padding: 18px 16px 16px;
    }

    .auth-modern-page .auth-card {
        max-width: none;
    }

    .auth-modern-page .auth-title h1 {
        font-size: 24px;
    }

    .auth-brand-title {
        font-size: 28px;
    }

    .auth-modern-page .auth-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .auth-modern-page .captcha-row {
        flex-wrap: wrap;
    }

    .auth-modern-page .captcha-img,
    .auth-modern-page .code-btn {
        width: 100%;
    }
}
