.auth-section { padding: 80px 0; background: #f8fafc; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-container { display: flex; background: #fff; border-radius: 24px; box-shadow: var(--shadow-xl); overflow: hidden; max-width: 1000px; width: 100%; min-height: 600px; margin: 0 auto; }
.auth-visual { flex: 1; background: var(--vibe-gradient); padding: 60px; display: flex; flex-direction: column; justify-content: center; color: #fff; position: relative; overflow: hidden; }
.auth-visual::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=1000&auto=format&fit=crop'); background-size: cover; opacity: 0.1; animation: spin-slow 60s linear infinite; pointer-events: none; }
.auth-visual-content { position: relative; z-index: 2; }
.auth-visual h2 { font-size: 3rem; margin-bottom: 20px; color: #fff; line-height: 1.2; font-family: 'SVN-Gilroy Bold', sans-serif; }
.auth-visual p { font-size: 1.1rem; opacity: 0.9; line-height: 1.6; }
.auth-forms { flex: 1; padding: 60px; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.auth-form-wrapper { display: none; animation: fadeIn 0.4s ease-out; }
.auth-form-wrapper.active { display: block; }
.auth-title { font-size: 2rem; margin-bottom: 8px; color: var(--text-main); font-family: 'SVN-Gilroy Bold', sans-serif; }
.auth-subtitle { color: var(--text-light); margin-bottom: 32px; font-size: 1rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; color: var(--text-main); }
.auth-input { width: 100%; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 1rem; font-family: 'Inter', sans-serif; transition: all 0.2s ease; color: var(--text-body); background: #fcfcfd; box-sizing: border-box; }
.auth-input:focus { border-color: var(--primary); outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(13, 62, 154, 0.1); }
.password-input-wrapper { position: relative; width: 100%; }
.password-input-wrapper input { padding-right: 45px; }
.toggle-password-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #94a3b8; padding: 0; display: flex; align-items: center; justify-content: center; transition: 0.2s; z-index: 5; height: 100%; width: 40px; }
.toggle-password-btn:hover { color: var(--primary); }
.auth-check-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; font-size: 0.9rem; }
.auth-remember { display: flex; align-items: center; gap: 8px; color: var(--text-body); cursor: pointer; }
.auth-remember input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.auth-forgot-link { color: var(--primary); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.auth-forgot-link:hover { text-decoration: underline; }
.btn-auth { font-size: 1rem; padding: 14px; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-auth.is-loading { cursor: default; opacity: 0.88; }
.mail-standalone-login .btn-auth .btn-spinner,
.mail-standalone-login .btn-auth .auth-btn-spinner { width: 18px; height: 18px; margin: 0; border-width: 2px; box-sizing: border-box; display: inline-block; align-self: center; flex: 0 0 18px; vertical-align: middle; }
.mail-standalone-login .btn-auth .btn-spinner:only-child,
.mail-standalone-login .btn-auth .auth-btn-spinner:only-child { margin: 0 !important; }
.mail-standalone-login .btn-auth .btn-loading-text { display: inline-flex; align-items: center; min-height: 18px; line-height: 1.2; }
.auth-honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.auth-btn-spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.45); border-top-color: #fff; border-radius: 50%; box-sizing: border-box; flex: 0 0 auto; animation: auth-spin 0.75s linear infinite; }
.auth-switch-text { text-align: center; margin-top: 24px; color: var(--text-light); font-size: 0.95rem; }
.auth-switch-link { color: var(--primary); font-weight: 700; cursor: pointer; transition: 0.2s; margin-left: 5px; }
.auth-switch-link:hover { color: var(--accent); text-decoration: underline; }
@keyframes spin-slow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 992px) { .auth-container { flex-direction: column; max-width: 500px; min-height: auto; } .auth-visual { display: none; } .auth-forms { padding: 40px 30px; } }
@media (max-width: 480px) { .auth-forms { padding: 30px 20px; } .auth-title { font-size: 1.8rem; } }
.auth-divider{display:flex;align-items:center;text-align:center;margin:24px 0;color:#94a3b8;font-size:.85rem;font-weight:600;text-transform:uppercase;}
.auth-divider::before,.auth-divider::after{content:'';flex:1;border-bottom:1px solid #e2e8f0;}
.auth-divider span{padding:0 12px;}
.google-auth-wrapper{display:flex;justify-content:center;margin-bottom:24px;width:100%;}

/* MyVibe Admin Shell 2.0 auth refresh */
.auth-section {
    padding: 48px 20px;
    background: var(--mv-surface-soft, #f8fafc);
}

.auth-container {
    max-width: 980px;
    min-height: 560px;
    border: 1px solid var(--mv-border-soft, rgba(226, 232, 240, 0.82));
    border-radius: var(--mv-radius-panel, 24px);
    background: var(--mv-surface, #fff);
    box-shadow: var(--mv-shadow-card, 0 12px 30px rgba(13, 62, 154, 0.05));
}

.auth-visual {
    padding: 56px;
    background: var(--vibe-gradient);
}

.auth-visual::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
    animation: none;
    opacity: 1;
}

.auth-visual h2 {
    max-width: 420px;
    font-size: clamp(2.15rem, 4vw, 3rem);
    letter-spacing: 0;
}

.auth-visual p {
    max-width: 390px;
}

.auth-forms {
    padding: 52px;
    background: var(--mv-surface, #fff);
}

.auth-title {
    font-size: clamp(1.75rem, 2.5vw, 2rem);
    line-height: 1.2;
    letter-spacing: 0;
}

.auth-subtitle {
    margin-bottom: 28px;
    line-height: 1.55;
}

.auth-input {
    min-height: var(--mv-control-height, 44px);
    border-color: var(--mv-border-soft, rgba(226, 232, 240, 0.82));
    border-radius: var(--mv-radius-control, 12px);
    background: var(--mv-surface-soft, #f8fafc);
}

.auth-input:focus {
    border-color: rgba(13, 62, 154, 0.42);
    background: var(--mv-surface, #fff);
    box-shadow: var(--mv-focus-ring, 0 0 0 3px rgba(13, 62, 154, 0.16));
}

.toggle-password-btn {
    width: 38px;
    height: 38px;
    right: 8px;
    border-radius: 999px;
}

.google-auth-wrapper {
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    align-items: center;
}

.google-auth-wrapper > div,
.google-auth-wrapper iframe {
    border-radius: 999px !important;
}

.auth-check-row {
    gap: 14px;
}

@media (max-width: 992px) {
    .auth-section {
        align-items: flex-start;
        padding-top: 36px;
    }

    .auth-container {
        max-width: 520px;
        border-radius: 20px;
        min-height: auto;
    }

    .auth-forms {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .auth-section {
        padding: 24px 14px;
    }

    .auth-container {
        border-radius: 18px;
    }

    .auth-forms {
        padding: 28px 18px;
    }

    .auth-check-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .btn-auth {
        width: 100%;
    }
}
