/* ===========================================
   LOGIN.CSS  —  Dashmesh Khalsa College
   Standalone page — no global.css dependency
=========================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:     #0a3d91;
    --primary-end: #12c7ea;
    --text:        #555;
    --radius:      14px;
    --font:        'Poppins', sans-serif;
}

body.login-body {
    font-family: var(--font);
    background: #f3f7fc;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* ===========================================
   TWO-PANEL LAYOUT
=========================================== */
.login-page {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── LEFT PANEL ── */
.login-panel--left {
    flex: 0 0 42%;
    background: linear-gradient(155deg, #061e50 0%, #0a3d91 45%, #0b5bbf 75%, #12c7ea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
}

.panel-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18,199,234,.18) 0%, transparent 70%);
    bottom: -180px;
    right: -120px;
    pointer-events: none;
}

.panel-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
    max-width: 360px;
}

/* Logo + name */
.panel-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.panel-logo {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
}

.panel-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.panel-brand h2 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

.panel-brand p {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    line-height: 1.6;
}

/* Tagline */
.panel-tagline {
    border-left: 3px solid rgba(255,255,255,.3);
    padding-left: 20px;
}

.panel-quote {
    font-size: 48px;
    line-height: .5;
    font-family: Georgia, serif;
    color: rgba(255,255,255,.2);
    display: block;
    margin-bottom: 6px;
}

.panel-tagline blockquote {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.5;
}

.panel-tagline cite {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    font-style: normal;
}

/* Stats */
.panel-stats {
    display: flex;
    gap: 28px;
}

.panel-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.panel-stat strong {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.panel-stat span {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    font-weight: 600;
}

/* ── RIGHT PANEL ── */
.login-panel--right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    background: #f3f7fc;
}

.form-panel-inner {
    width: 100%;
    max-width: 440px;
}

/* Mobile logo — hidden on desktop */
.mobile-logo {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.mobile-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    background: #eaf1ff;
    padding: 4px;
}

.mobile-logo span {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
}

/* Form head */
.form-head {
    margin-bottom: 36px;
}

.form-head h1 {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
}

.form-head p {
    font-size: 15px;
    color: #888;
}

/* ===========================================
   ALERTS
=========================================== */
.alert {
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1.5px solid #86efac;
}

/* ===========================================
   FORM GROUPS
=========================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 22px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    transition: color .25s;
}

.form-group label svg {
    flex-shrink: 0;
    color: var(--primary);
}

.form-group input {
    width: 100%;
    height: 54px;
    border: 1.5px solid #dde4f0;
    border-radius: var(--radius);
    padding: 0 20px;
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    transition: border-color .3s, box-shadow .3s;
    background: #fff;
    color: #111;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,61,145,.1);
}

.form-group.focused label {
    color: var(--primary);
}

/* Error state */
.form-group.field-error input {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229,62,62,.1);
}

.field-error-msg {
    font-size: 13px;
    color: #e53e3e;
    font-weight: 600;
}

/* Password toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color .25s;
}

.password-toggle:hover { color: var(--primary); }

/* ===========================================
   OPTIONS ROW
=========================================== */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 10px;
    flex-wrap: wrap;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.remember-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.forgot-link:hover { text-decoration: underline; }

/* ===========================================
   SUBMIT BUTTON
=========================================== */
.login-submit-btn {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-end));
    color: #fff;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .3s, box-shadow .3s;
}

.login-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(10,61,145,.28);
}

/* ===========================================
   FOOTER NOTE
=========================================== */
.login-footer-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #888;
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    text-decoration: none;
    transition: color .25s;
}

.back-home-link:hover { color: var(--primary); }

.divider { color: #ccc; }

.login-footer-note a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.login-footer-note a:hover { text-decoration: underline; }

/* ===========================================
   RESPONSIVE — TABLET (≤ 900px)
=========================================== */
@media (max-width: 900px) {
    .login-panel--left {
        flex: 0 0 38%;
        padding: 48px 32px;
    }

    .panel-brand h2 { font-size: 18px; }
    .panel-stat strong { font-size: 22px; }
}

/* ===========================================
   RESPONSIVE — MOBILE (≤ 700px)
=========================================== */
@media (max-width: 700px) {
    .login-page { flex-direction: column; }

    .login-panel--left { display: none; }

    .login-panel--right {
        padding: 40px 24px;
        align-items: flex-start;
        padding-top: 56px;
    }

    .mobile-logo { display: flex; }

    .form-head h1 { font-size: 26px; }

    .form-panel-inner { max-width: 100%; }
}

@media (max-width: 400px) {
    .login-panel--right { padding: 36px 18px; }

    .form-group input { height: 50px; font-size: 14px; }
    .login-submit-btn { height: 50px; font-size: 15px; }
}