/**
 * NETRAA — Premium Login Page Stylesheet
 * Cinematic split-screen layout
 */

.login-page-body {
    background: #f0f2f8 !important;
    min-height: 100vh;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* ===================== LEFT BRAND PANEL ===================== */
.login-brand-panel {
    flex: 0 0 45%;
    max-width: 45%;
    background: linear-gradient(160deg, hsl(270,85%,8%) 0%, hsl(270,75%,18%) 50%, hsl(20,90%,12%) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(255,109,0,0.15) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(74,20,140,0.4) 0%, transparent 55%);
    pointer-events: none;
}

/* Floating particles */
.login-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.login-particles span {
    position: absolute;
    display: block;
    width: 4px;
    height: 4px;
    background: rgba(255,193,7,0.5);
    border-radius: 50%;
    animation: loginFloat linear infinite;
}
.login-particles span:nth-child(1) { left: 15%; animation-duration: 14s; animation-delay: 0s; width: 3px; height: 3px; }
.login-particles span:nth-child(2) { left: 35%; animation-duration: 18s; animation-delay: 2s; width: 5px; height: 5px; background: rgba(255,100,0,0.4); }
.login-particles span:nth-child(3) { left: 55%; animation-duration: 16s; animation-delay: 4s; }
.login-particles span:nth-child(4) { left: 75%; animation-duration: 20s; animation-delay: 1s; width: 3px; height: 3px; }
.login-particles span:nth-child(5) { left: 90%; animation-duration: 13s; animation-delay: 3s; width: 6px; height: 6px; background: rgba(200,100,255,0.3); }

@keyframes loginFloat {
    0%   { bottom: -10px; opacity: 0; transform: translateX(0); }
    10%  { opacity: 1; }
    90%  { opacity: 0.4; }
    100% { bottom: 110%; opacity: 0; transform: translateX(60px); }
}

.login-brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 380px;
}

.login-om {
    font-family: serif;
    font-size: 4rem;
    color: rgba(255,193,7,0.25);
    line-height: 1;
    margin-bottom: 12px;
    animation: loginOmGlow 4s ease-in-out infinite alternate;
}
@keyframes loginOmGlow {
    from { color: rgba(255,193,7,0.25); }
    to   { color: rgba(255,193,7,0.45); text-shadow: 0 0 30px rgba(255,193,7,0.15); }
}

.login-brand-logo {
    height: 64px;
    margin-bottom: 18px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.login-brand-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(to bottom, #fff4d4 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.login-brand-sub {
    font-size: 0.75rem;
    font-weight: 700;
    color: #00cbf2;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.login-brand-tagline {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin-bottom: 30px;
}

.login-brand-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.login-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.84rem;
    font-weight: 500;
    transition: all 0.25s;
}
.login-feature-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(212,175,55,0.3);
}
.login-feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(212,175,55,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ── Google Login Button ── */
.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #3c4043;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}
.google-login-btn:hover {
    background: #f8f9fa;
    border-color: #c2c5c9;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    color: #202124;
}
.google-login-btn .google-icon {
    flex-shrink: 0;
}

/* ===================== RIGHT FORM PANEL ===================== */
.login-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f0f2f8;
    overflow-y: auto;
}

.login-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-form-header {
    text-align: center;
    margin-bottom: 28px;
}
.login-form-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.login-form-header p {
    color: #6b7280;
    font-size: 0.88rem;
    margin: 0;
}

/* Role tabs */
.login-role-tabs {
    display: flex;
    gap: 4px;
    background: #e5e7eb;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
}
.login-role-tab {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    border-radius: 7px;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.login-role-tab.active {
    background: #fff;
    color: #1a1a2e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.login-role-tab i { font-size: 0.85rem; }

/* Form */
.login-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
}

.login-input-group {
    margin-bottom: 18px;
}
.login-input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    display: block;
}
.login-input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    transition: all 0.25s;
    color: #1a1a2e;
}
.login-input:focus {
    outline: none;
    border-color: hsl(270,75%,40%);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(74,20,140,0.1);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.82rem;
}
.login-options a {
    color: hsl(270,75%,35%);
    text-decoration: none;
    font-weight: 500;
}
.login-options a:hover { text-decoration: underline; }

.login-submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, hsl(270,75%,25%) 0%, hsl(270,85%,15%) 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(74,20,140,0.25);
}
.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74,20,140,0.35);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: #9ca3af;
    font-size: 0.78rem;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.login-register-text {
    text-align: center;
    font-size: 0.88rem;
    color: #6b7280;
}
.login-register-text a {
    color: hsl(270,75%,35%);
    font-weight: 700;
    text-decoration: none;
}
.login-register-text a:hover { text-decoration: underline; }

/* Demo credentials */
.login-demo-card {
    margin-top: 20px;
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 14px 16px;
}
.login-demo-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.login-demo-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #374151;
    margin-bottom: 4px;
}
.login-demo-row:last-child { margin-bottom: 0; }
.login-demo-role {
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.68rem;
    min-width: 52px;
    text-align: center;
}
.login-demo-cred {
    font-family: monospace;
    font-size: 0.74rem;
    color: #6b7280;
}

/* ===================== ALERT ===================== */
.login-alert {
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.84rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.login-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991.98px) {
    .login-brand-panel { display: none; }
    .login-form-panel { padding: 28px 20px; }
}

@media (max-width: 575.98px) {
    .login-form-panel { padding: 20px 16px; }
    .login-form-card { padding: 20px 16px; }
    .login-form-header h3 { font-size: 1.2rem; }
}
