/* ================================================================
   admin_login.css  —  LNMS College Admin Login Page
   Follows the same design system as principals_list.css:
     · CSS variables (blue / green tokens)
     · Poppins + Playfair Display + DM Sans
     · Animated entry, decorative rings, grid lines
     · Card-based login form
   ================================================================ */

/* ── Font import ───────────────────────────────────────────────── */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
}

/* ── Design tokens (mirror principals_list.css exactly) ────────── */
:root {
    --blue:        #1E3A8A;
    --blue-dark:   #162d6e;
    --blue-mid:    #2a4fa8;
    --blue-light:  #dbeafe;
    --green:       #22C55E;
    --green-dark:  #16a34a;
    --green-light: #dcfce7;
    --bg:          #F8FAFC;
    --card:        #ffffff;
    --text:        #0F172A;
    --text-muted:  #475569;
    --border:      #e2e8f0;
    --shadow-sm:   0 2px 10px rgba(15,23,42,.08);
    --shadow-md:   0 6px 24px rgba(15,23,42,.12);
    --shadow-lg:   0 16px 48px rgba(15,23,42,.18);
    --shadow-blue: 0 8px 28px rgba(30,58,138,.28);
    --r-sm:        8px;
    --r-md:        14px;
    --r-lg:        20px;
    --r-pill:      50px;
    --t:           0.3s ease;
    --font:        'Poppins','Noto Sans Devanagari',sans-serif;
}

/* ================================================================
   RESET / BASE
   ================================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* ================================================================
   1. FULL-SCREEN HERO WRAPPER
      Same gradient as pl-mini-hero
   ================================================================ */
.al-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1E3A8A 55%, #2a4fa8 100%);
    padding: 40px 20px;
}

/* ── Noise overlay ─────────────────────────────────────────────── */
.al-page__overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.22;
    pointer-events: none;
    z-index: 1;
}

/* ── Decorative rings (mirrors pl-mini-hero__ring) ─────────────── */
.al-page__ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}
.al-page__ring--tl {
    top: -100px;
    left: -100px;
    width: 360px;
    height: 360px;
    border: 70px solid rgba(30, 58, 138, 0.20);
}
.al-page__ring--tr {
    top: -70px;
    right: -70px;
    width: 280px;
    height: 280px;
    border: 52px solid rgba(34, 197, 94, 0.10);
}
.al-page__ring--br {
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border: 56px solid rgba(30, 58, 138, 0.18);
}
.al-page__ring--bl {
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border: 40px solid rgba(34, 197, 94, 0.08);
}

/* ── Animated grid lines ───────────────────────────────────────── */
.al-page__grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: alGridDrift 18s linear infinite;
}

@keyframes alGridDrift {
    from { background-position: 0 0; }
    to   { background-position: 48px 48px; }
}

/* ================================================================
   2. BRAND HEADER (above the card)
   ================================================================ */
.al-brand {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(18px);
    animation: alFadeUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}

.al-brand__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34,197,94,.15);
    border: 1px solid rgba(34,197,94,.45);
    color: var(--green);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: var(--r-pill);
    margin-bottom: 14px;
}

.al-brand__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: alPulse 2s ease-in-out infinite;
}

.al-brand__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: rgba(255,255,255,.90);
    line-height: 1.35;
    max-width: 420px;
    margin: 0 auto 4px;
    letter-spacing: -.01em;
}

.al-brand__sub {
    font-size: .78rem;
    color: rgba(255,255,255,.45);
    font-weight: 400;
    letter-spacing: .04em;
}

/* ================================================================
   3. LOGIN CARD
   ================================================================ */
.al-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: var(--card);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(30,58,138,.10);
    overflow: hidden;
    opacity: 0;
    transform: translateY(28px);
    animation: alFadeUp 0.70s cubic-bezier(0.22,1,0.36,1) 0.28s forwards;
}

/* ── Card top accent bar ────────────────────────────────────────── */
.al-card__topbar {
    height: 5px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--green) 100%);
}

/* ── Card header ────────────────────────────────────────────────── */
.al-card__header {
    padding: 28px 32px 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.al-card__icon-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 1.2rem;
}

.al-card__heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.02em;
    line-height: 1.2;
}

.al-card__heading em {
    font-style: normal;
    color: var(--blue);
    position: relative;
}

.al-card__heading em::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    transform-origin: left;
    transform: scaleX(0);
    animation: alUnderline 0.55s cubic-bezier(0.22,1,0.36,1) 1s forwards;
}

.al-card__tagline {
    font-size: .78rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}

/* ── Card body ──────────────────────────────────────────────────── */
.al-card__body {
    padding: 26px 32px;
}

/* ── Form group ─────────────────────────────────────────────────── */
.al-form-group {
    margin-bottom: 18px;
}

.al-form-label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 7px;
}

.al-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.al-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: .95rem;
    pointer-events: none;
    transition: color var(--t);
}

.al-input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    font-family: var(--font);
    font-size: .92rem;
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    outline: none;
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.al-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.al-input:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30,58,138,.12);
}

.al-input:focus + .al-input-icon,
.al-input-wrap:focus-within .al-input-icon {
    color: var(--blue);
}

/* ── Validator error message ────────────────────────────────────── */
.al-form-group span[id*="Rfv"],
.al-form-group span[id*="Req"],
.al-validator {
    display: block;
    font-size: .74rem;
    color: #ef4444;
    font-weight: 500;
    margin-top: 5px;
    padding-left: 4px;
}

/* ── Status / error label ───────────────────────────────────────── */
.al-msg-label {
    display: block;
    font-size: .84rem;
    font-weight: 500;
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--r-sm);
    padding: 9px 14px;
    margin-top: 4px;
    text-align: center;
}

.al-msg-label:empty {
    display: none;
}

/* ── Divider ────────────────────────────────────────────────────── */
.al-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 4px 0 20px;
}

/* ── Submit button ──────────────────────────────────────────────── */
.al-btn {
    display: block;
    width: 100%;
    padding: 13px 20px;
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--t), transform var(--t), filter var(--t);
    box-shadow: var(--shadow-blue);
}

.al-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(34,197,94,.18) 100%);
    opacity: 0;
    transition: opacity var(--t);
}

.al-btn:hover {
    box-shadow: 0 10px 32px rgba(30,58,138,.38);
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.al-btn:hover::after {
    opacity: 1;
}

.al-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-blue);
}

.al-btn__icon {
    margin-right: 8px;
    font-size: .9rem;
}

/* ── Card footer ────────────────────────────────────────────────── */
.al-card__footer {
    padding: 14px 32px 24px;
    text-align: center;
}

.al-card__footer-text {
    font-size: .74rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.al-card__footer-text i {
    color: var(--green);
    font-size: .78rem;
}

/* ================================================================
   4. BOTTOM CAPTION (below card)
   ================================================================ */
.al-caption {
    position: relative;
    z-index: 10;
    margin-top: 22px;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    animation: alFadeUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.55s forwards;
}

.al-caption__text {
    font-size: .72rem;
    color: rgba(255,255,255,.35);
    font-weight: 400;
}

.al-caption__text a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: color 0.2s;
}

.al-caption__text a:hover {
    color: var(--green);
}

/* ================================================================
   5. KEYFRAMES
   ================================================================ */
@keyframes alFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes alUnderline {
    to { transform: scaleX(1); }
}

@keyframes alPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.8); }
}

/* ================================================================
   6. RESPONSIVE
   ================================================================ */
@media (max-width: 480px) {
    .al-card__header,
    .al-card__body,
    .al-card__footer {
        padding-left: 22px;
        padding-right: 22px;
    }

    .al-brand__title {
        font-size: 1rem;
    }

    .al-page__ring--tl {
        width: 220px;
        height: 220px;
        border-width: 44px;
        top: -60px;
        left: -60px;
    }

    .al-page__ring--tr {
        width: 160px;
        height: 160px;
        border-width: 32px;
    }
}
