/* ============================================================
   WP Auth System — shared base styles
   ============================================================ */

.wp-auth-wrap *,
.wp-auth-wrap *::before,
.wp-auth-wrap *::after {
    box-sizing: border-box;
}

.wp-auth-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    color: #1a1a2e;
}

.wp-auth-form .form-group {
    margin-bottom: 18px;
}

.wp-auth-form label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #444;
}

.wp-auth-form input[type="text"],
.wp-auth-form input[type="email"],
.wp-auth-form input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    background: #fff;
}

.wp-auth-form input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,.15);
}

.wp-auth-form .btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.wp-auth-form .btn-primary:hover {
    background: #135e96;
}

.wp-auth-form .btn-primary:active {
    transform: scale(.98);
}

.wp-auth-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
}

.wp-auth-notice.error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.wp-auth-notice.success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #15803d;
}

.wp-auth-notice.info {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1d4ed8;
}

.wp-auth-form .form-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

.wp-auth-form .form-footer a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

.wp-auth-form .form-footer a:hover {
    text-decoration: underline;
}

.wp-auth-form .remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 13px;
}

.wp-auth-form .remember-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    margin: 0;
    cursor: pointer;
}

.wp-auth-form .remember-row a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

/* ============================================================
   Template 1: Classic
   ============================================================ */

.wp-auth-template-classic {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f7f9;
    padding: 20px;
}

.wp-auth-template-classic .auth-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
}

.wp-auth-template-classic .auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.wp-auth-template-classic .auth-logo img {
    max-height: 56px;
    max-width: 180px;
}

.wp-auth-template-classic .auth-logo .site-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}

.wp-auth-template-classic h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1a1a2e;
}

.wp-auth-template-classic .subtitle {
    font-size: 13px;
    color: #888;
    margin: 0 0 24px;
}

/* ============================================================
   Template 2: Split Panel
   ============================================================ */

.wp-auth-template-split {
    min-height: 100vh;
    display: flex;
}

.wp-auth-template-split .auth-panel-left {
    flex: 1;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    color: #fff;
    text-align: center;
}

.wp-auth-template-split .auth-panel-left h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #fff;
}

.wp-auth-template-split .auth-panel-left p {
    font-size: 15px;
    color: rgba(255,255,255,.7);
    max-width: 320px;
    line-height: 1.6;
}

.wp-auth-template-split .auth-panel-left .brand-icon {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 32px;
}

.wp-auth-template-split .auth-panel-right {
    width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    background: #fff;
}

.wp-auth-template-split .auth-panel-right .inner {
    width: 100%;
    max-width: 360px;
}

.wp-auth-template-split h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1a1a2e;
}

.wp-auth-template-split .subtitle {
    font-size: 13px;
    color: #888;
    margin: 0 0 28px;
}

@media (max-width: 768px) {
    .wp-auth-template-split {
        flex-direction: column;
    }

    .wp-auth-template-split .auth-panel-left {
        padding: 40px 24px;
    }

    .wp-auth-template-split .auth-panel-left h1 {
        font-size: 24px;
    }

    .wp-auth-template-split .auth-panel-right {
        width: 100%;
        padding: 40px 24px;
    }
}

/* Split — full-width when no left panel (dashboard) */

.wp-auth-template-split .auth-panel-right--full {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 40px;
    align-items: flex-start;
}

/* Classic — wider card for dashboard */

.wp-auth-template-classic .auth-box--dashboard {
    max-width: 760px;
    padding: 0;
    overflow: hidden;
}

/* Modern — wider card for dashboard */

.wp-auth-template-modern .auth-card--dashboard {
    max-width: 760px;
    padding: 0;
}

/* ============================================================
   Dashboard inner content (shared across all templates)
   ============================================================ */

.wp-auth-dashboard-inner {
    overflow: hidden;
}

.wp-auth-dashboard-inner .dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: #f6f7f9;
    border-bottom: 1px solid #e5e7eb;
}

.wp-auth-dashboard-inner .user-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wp-auth-dashboard-inner .user-avatar img {
    border-radius: 50%;
    display: block;
}

.wp-auth-dashboard-inner .user-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wp-auth-dashboard-inner .user-meta strong {
    font-size: 15px;
    color: #1a1a2e;
}

.wp-auth-dashboard-inner .user-meta span {
    font-size: 13px;
    color: #888;
}

.wp-auth-dashboard-inner .btn-logout {
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}

.wp-auth-dashboard-inner .btn-logout:hover {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.wp-auth-dashboard-inner .dashboard-body {
    padding: 28px;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================================
   Template 3: Modern Floating Card
   ============================================================ */

.wp-auth-template-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.wp-auth-template-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(255,255,255,.05) 0%, transparent 50%);
    pointer-events: none;
}

.wp-auth-template-modern .auth-card {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    padding: 48px 44px;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.wp-auth-template-modern .auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.wp-auth-template-modern h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #1a1a2e;
}

.wp-auth-template-modern .subtitle {
    font-size: 14px;
    color: #888;
    margin: 0 0 28px;
}

.wp-auth-template-modern .wp-auth-form .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

.wp-auth-template-modern .wp-auth-form .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6, #6a4291);
}

.wp-auth-template-modern .wp-auth-form input:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(118,75,162,.15);
}
