/* ==========================================================================
   School Management — Authentication pages
   ========================================================================== */

:root {
    --c-brand: #3b82f6;
    --c-brand-dark: #1e3a8a;
    --c-border: #e5e7eb;
    --c-muted: #64748b;
}

* { box-sizing: border-box; }

.auth-body {
    margin: 0;
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

/* Brand / showcase panel --------------------------------------------------- */
.auth-aside {
    flex: 1 1 50%;
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    overflow: hidden;
}

.auth-aside::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px circle at 80% 10%, rgba(255, 255, 255, .12), transparent 40%),
        radial-gradient(500px circle at 10% 90%, rgba(255, 255, 255, .10), transparent 40%);
}

.auth-aside-inner {
    position: relative;
    z-index: 1;
    max-width: 460px;
    margin: 0 auto;
    padding: 64px 48px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 48px;
}

.auth-brand i { font-size: 1.8rem; }

.auth-aside-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
}

.auth-aside-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .85);
    margin: 0 0 32px;
}

.auth-aside-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.auth-aside-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
}

.auth-aside-points i { color: #93c5fd; font-size: 1.15rem; }

/* Form panel --------------------------------------------------------------- */
.auth-panel {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    width: 100%;
    max-width: 410px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
    padding: 40px 36px;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 4px;
}

.auth-subtitle {
    color: var(--c-muted);
    margin: 0 0 28px;
    font-size: .95rem;
}

.auth-footnote {
    margin-top: 24px;
    color: var(--c-muted);
    font-size: .8rem;
}

/* Form controls ------------------------------------------------------------ */
.auth-card .form-label {
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: 6px;
}

.auth-input-group {
    position: relative;
}

.auth-input-group > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-muted);
    pointer-events: none;
}

.auth-card .form-control {
    height: 48px;
    padding-left: 42px;
    border-radius: 10px;
    background: #f8fafc;
}

.auth-card .form-control:focus {
    background: #fff;
    border-color: var(--c-brand);
    box-shadow: 0 0 0 .2rem rgba(59, 130, 246, .15);
}

.auth-toggle-pw {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--c-muted);
    padding: 8px;
    cursor: pointer;
}

.auth-toggle-pw:hover { color: #1e293b; }

.btn-auth {
    height: 48px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-link { color: var(--c-brand); text-decoration: none; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

.auth-divider {
    text-align: center;
    color: var(--c-muted);
    font-size: .85rem;
    margin: 22px 0;
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .auth-aside { display: none; }
    .auth-panel { flex-basis: 100%; }
}
