/* ============================================
   LOGIN THEMES — 4 Concepts with Theme Switcher
   ============================================ */

/* ---- Reset & Base ---- */
.login-theme { display: none; min-height: 100vh; }
.login-theme.active { display: flex; }

/* ---- Theme Switcher Pill ---- */
.theme-switcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.theme-switcher .ts-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 8px 0 12px;
    white-space: nowrap;
}
.theme-switcher button {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.theme-switcher button:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.theme-switcher button.active {
    background: #3B8DBF;
    color: #fff;
    box-shadow: 0 2px 8px rgba(59,141,191,0.35);
}

/* ============================================
   CONCEPT A — Glass Card
   ============================================ */
.theme-glass {
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #0f172a, #1e3a5f, #4361ee, #7c3aed);
    background-size: 400% 400%;
    animation: glassGradient 12s ease infinite;
}
@keyframes glassGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.theme-glass .glass-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.theme-glass .glass-logo {
    display: block;
    max-width: 180px;
    height: auto;
    margin: 0 auto 24px;
}
.theme-glass h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    text-align: center;
}
.theme-glass .glass-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    text-align: center;
    margin-bottom: 28px;
}
.theme-glass .form-label {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 500;
}
.theme-glass .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.theme-glass .form-control::placeholder { color: rgba(255,255,255,0.4); }
.theme-glass .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
    color: #fff;
}
.theme-glass .btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: #fff;
    color: #1e3a5f;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}
.theme-glass .btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,255,255,0.3);
}
.theme-glass a { color: rgba(255,255,255,0.85); }
.theme-glass a:hover { color: #fff; }
.theme-glass .glass-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
.theme-glass .glass-links {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}
.theme-glass .glass-links a { color: rgba(255,255,255,0.7); text-decoration: underline; }

/* Password eye for glass */
.theme-glass .password-wrapper { position: relative; }
.theme-glass .password-eye {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    cursor: pointer; color: rgba(255,255,255,0.6); z-index: 2; line-height: 0;
}

/* Alerts in glass */
.theme-glass .alert { background: rgba(220,53,69,0.2); border: 1px solid rgba(220,53,69,0.4); color: #fca5a5; border-radius: 12px; }
.theme-glass .alert strong { color: #fca5a5; }

@media (max-width: 480px) {
    .theme-glass .glass-card { margin: 16px; padding: 32px 24px; }
}


/* ============================================
   CONCEPT B — Split Hero
   ============================================ */
.theme-split {
    flex-direction: row;
}
.theme-split .split-brand {
    width: 50%;
    min-height: 100vh;
    background: linear-gradient(160deg, #2a7ab5 0%, #3B8DBF 50%, #4EA8D6 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
}
.theme-split .split-brand::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -100px; right: -150px;
}
.theme-split .split-brand::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    bottom: -50px; left: -80px;
}
.theme-split .split-brand-content {
    position: relative;
    z-index: 1;
    max-width: 440px;
}
.theme-split .split-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 48px;
}
.theme-split .split-headline {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 24px;
}
.theme-split .split-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.theme-split .split-features li {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.theme-split .split-features li .feature-dot {
    width: 8px; height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    flex-shrink: 0;
}
.theme-split .split-copyright {
    position: absolute;
    bottom: 32px;
    left: 48px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}
.theme-split .split-form {
    width: 50%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 48px;
    background: #fff;
}
.theme-split .split-form-inner {
    width: 100%;
    max-width: 380px;
}
.theme-split .split-form-logo {
    display: none;
    max-width: 160px;
    height: auto;
    margin-bottom: 32px;
}
.theme-split .split-form h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}
.theme-split .split-form .split-subtitle {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 32px;
}
.theme-split .split-form .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.theme-split .split-form .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.theme-split .split-form .form-control:focus {
    border-color: #3B8DBF;
    box-shadow: 0 0 0 3px rgba(59,141,191,0.12);
    background: #fff;
}
.theme-split .btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #3B8DBF;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.theme-split .btn-login:hover {
    background: #2a7ab5;
    transform: translateY(-1px);
}
.theme-split .split-form a { color: #3B8DBF; text-decoration: none; }
.theme-split .split-form a:hover { text-decoration: underline; }
.theme-split .split-form .split-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #64748b;
}
.theme-split .split-form .split-links {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #94a3b8;
}
.theme-split .split-form .split-links a { color: #64748b; text-decoration: underline; }

/* Password eye for split */
.theme-split .password-wrapper { position: relative; }
.theme-split .password-eye {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    cursor: pointer; color: #94a3b8; z-index: 2; line-height: 0;
}
.theme-split .password-eye:hover { color: #475569; }

@media (max-width: 991px) {
    .theme-split { flex-direction: column; }
    .theme-split .split-brand { display: none; }
    .theme-split .split-form { width: 100%; padding: 40px 24px; }
    .theme-split .split-form-logo { display: block; }
}


/* ============================================
   CONCEPT C — Floating Card
   ============================================ */
.theme-floating {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    padding: 24px;
}
.theme-floating .floating-header {
    text-align: center;
    margin-bottom: 32px;
}
.theme-floating .floating-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 12px;
}
.theme-floating .floating-tagline {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}
.theme-floating .floating-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}
.theme-floating .floating-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}
.theme-floating .floating-card .floating-subtitle {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 28px;
}
.theme-floating .floating-card .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.theme-floating .floating-card .form-control {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.theme-floating .floating-card .form-control:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67,97,238,0.1);
}
.theme-floating .form-check-label { font-size: 13px; color: #475569; }
.theme-floating .btn-login {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 8px;
    background: #4361ee;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.theme-floating .btn-login:hover { background: #3651d4; }
.theme-floating a { color: #4361ee; text-decoration: none; font-size: 13px; }
.theme-floating a:hover { text-decoration: underline; }
.theme-floating .floating-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #64748b;
    max-width: 420px;
}
.theme-floating .floating-links {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: #94a3b8;
}
.theme-floating .floating-links a { color: #64748b; }

/* Password eye for floating */
.theme-floating .password-wrapper { position: relative; }
.theme-floating .password-eye {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    cursor: pointer; color: #94a3b8; z-index: 2; line-height: 0;
}
.theme-floating .password-eye:hover { color: #475569; }

@media (max-width: 480px) {
    .theme-floating { padding: 16px; }
    .theme-floating .floating-card { padding: 28px 24px; }
}


/* ============================================
   CONCEPT D — Gradient Sidebar
   ============================================ */
.theme-sidebar {
    flex-direction: row;
}
.theme-sidebar .sidebar-bar {
    width: 80px;
    min-height: 100vh;
    background: linear-gradient(180deg, #2a7ab5 0%, #3B8DBF 60%, #333333 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    position: relative;
}
.theme-sidebar .sidebar-logomark {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    overflow: hidden;
}
.theme-sidebar .sidebar-logomark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.theme-sidebar .sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: auto;
}
.theme-sidebar .sidebar-copyright {
    color: rgba(255,255,255,0.3);
    font-size: 10px;
    margin-top: auto;
    writing-mode: vertical-rl;
}
.theme-sidebar .sidebar-main {
    flex: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: #fff;
}
.theme-sidebar .sidebar-form-inner {
    width: 100%;
    max-width: 440px;
}
.theme-sidebar .sidebar-mobile-logo {
    display: none;
    max-width: 140px;
    height: auto;
    margin-bottom: 32px;
}
.theme-sidebar h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}
.theme-sidebar .sidebar-subtitle {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 36px;
    line-height: 1.5;
}
.theme-sidebar .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.theme-sidebar .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.theme-sidebar .form-control:focus {
    border-color: #3B8DBF;
    box-shadow: 0 0 0 3px rgba(59,141,191,0.1);
}
.theme-sidebar .btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #3B8DBF;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.15s;
}
.theme-sidebar .btn-login:hover {
    background: #2a7ab5;
    transform: translateY(-1px);
}
.theme-sidebar a { color: #3B8DBF; text-decoration: none; }
.theme-sidebar a:hover { text-decoration: underline; }
.theme-sidebar .sidebar-footer {
    margin-top: 28px;
    font-size: 14px;
    color: #64748b;
}
.theme-sidebar .sidebar-links {
    margin-top: 16px;
    font-size: 12px;
    color: #94a3b8;
}
.theme-sidebar .sidebar-links a { color: #64748b; text-decoration: underline; }

/* Password eye for sidebar */
.theme-sidebar .password-wrapper { position: relative; }
.theme-sidebar .password-eye {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    cursor: pointer; color: #94a3b8; z-index: 2; line-height: 0;
}
.theme-sidebar .password-eye:hover { color: #475569; }

@media (max-width: 767px) {
    .theme-sidebar .sidebar-bar { display: none; }
    .theme-sidebar .sidebar-main { padding: 40px 24px; }
    .theme-sidebar .sidebar-mobile-logo { display: block; }
    .theme-sidebar h2 { font-size: 26px; }
}


/* ============================================
   Shared Utilities
   ============================================ */
.login-forgot { font-size: 13px; }
.login-divider { border-top: 1px solid #e2e8f0; margin: 16px 0; }

/* Eye icon SVG sizing */
.password-eye svg { width: 18px; height: 18px; }

/* Responsive switcher */
@media (max-width: 600px) {
    .theme-switcher {
        bottom: 12px;
        right: 12px;
        left: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .theme-switcher .ts-label { display: none; }
    .theme-switcher button { font-size: 11px; padding: 6px 10px; }
}
