/* ── Login Page Styles ─────────────────────────────── */
* { box-sizing: border-box; }

/* ── Outer wrapper — carries the dark background (login pages only) ── */
.login-page {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 40%, #1a237e 100%);
    overflow-y: auto;
    z-index: 0;
}

/* ── Decorative circles (scoped to login-page, not body) ── */
.login-page::before, .login-page::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    opacity: .08;
    pointer-events: none;
    background: #fff;
    z-index: -1;
}
.login-page::before {
    width: 500px; height: 500px;
    top: -120px; right: -120px;
}
.login-page::after {
    width: 350px; height: 350px;
    bottom: -80px; left: -80px;
}

/* ── Card ── */
.login-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
    width: 100%;
    max-width: 420px;
    padding: 40px 36px 32px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* ── Top accent bar ── */
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, #1a73e8, #0d47a1);
}

/* ── Logo ── */
.login-logo {
    display: block;
    height: 72px;
    margin: 0 auto 10px;
}

/* ── College name ── */
.login-college-name {
    text-align: center;
    font-weight: 800;
    font-size: .78rem;
    color: #7b1fa2;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 4px;
    line-height: 1.4;
}

/* ── Divider ── */
.login-divider {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 14px 0 18px;
}

/* ── Title badge ── */
.login-title {
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, #1a73e8, #0d47a1);
    border-radius: 20px;
    padding: 5px 18px;
    display: inline-block;
    margin: 0 auto 20px;
    width: auto;
}
.login-title-wrap {
    text-align: center;
    margin-bottom: 6px;
}

/* ── Alert messages ── */
.login-card .alert {
    border-radius: 8px;
    font-size: .83rem;
    padding: .5rem .9rem;
    margin-bottom: 12px;
}

/* ── Input groups ── */
.lg-input-group {
    position: relative;
    margin-bottom: 16px;
}
.lg-input-group label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}
.lg-input-group .lg-icon {
    position: absolute;
    left: 13px;
    bottom: 11px;
    color: #adb5bd;
    font-size: .9rem;
    pointer-events: none;
    transition: color .2s;
}
.lg-input-group input {
    width: 100%;
    border: 1.5px solid #dee2e6;
    border-radius: 10px;
    padding: 10px 14px 10px 36px;
    font-size: .88rem;
    color: #212529;
    background: #f8f9fa;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}
.lg-input-group input:focus {
    border-color: #1a73e8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}
.lg-input-group input:focus + .lg-icon,
.lg-input-group:focus-within .lg-icon {
    color: #1a73e8;
}

/* ── Submit button ── */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
    transition: opacity .2s, transform .1s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(26,115,232,.35);
    margin-top: 4px;
}
.btn-login:hover { opacity: .92; box-shadow: 0 6px 20px rgba(26,115,232,.45); }
.btn-login:active { transform: scale(.98); }
.btn-login:disabled { opacity: .65; cursor: not-allowed; }

/* ── Bottom links ── */
.login-links {
    text-align: center;
    margin-top: 16px;
    font-size: .8rem;
    color: #6c757d;
}
.login-links a { color: #1a73e8; font-weight: 700; text-decoration: none; }
.login-links a:hover { text-decoration: underline; }
.login-links .sep { margin: 8px 0; border-top: 1px solid #f0f0f0; }

/* ── Register strip ── */
.login-register-strip {
    background: #f0f7ff;
    border-radius: 10px;
    padding: 10px 14px;
    text-align: center;
    margin-bottom: 16px;
    font-size: .8rem;
    color: #495057;
}
.login-register-strip a { color: #0d47a1; font-weight: 700; text-decoration: none; }
.login-register-strip a:hover { text-decoration: underline; }

/* ── Spinner ── */
.spinner-border-sm { width: .85rem; height: .85rem; border-width: .15em; }

/* ── Responsive ── */
@media (max-width: 480px) {
    .login-card { padding: 32px 20px 24px; border-radius: 16px; }
    .login-logo  { height: 60px; }
}

/* ── Override global card style ── */
.login-card.card { background: #fff !important; border: none !important; }

/* ── Helpers retained for registration/other pages (login.css loads there too) ── */
span.error { display: inline-block; color: rgb(172,37,37); font-size: .8rem; }
.preview { width:180px; height:185px; border:1px solid lightgray; border-radius:5px; display:flex; margin:auto; background:#fff; position:relative; align-items:center; justify-content:center; }
#profile  { position:absolute; width:100%; height:100%; top:0; left:0; }
#ipicker  { z-index:3; cursor:pointer; }
#inputPhotoFile { display:none; }
.app-title { height:80px; margin-bottom:8px; }
.head-title { width:100%; text-align:center; }
.site-title { font-weight:bold; font-size:1.1rem; color:#9A3030; }
.form-label-group { position:relative; margin-bottom:1rem; }
.form-label-group>label { display:inline !important; padding-bottom:0 !important; }
