/* School portal login — split layout */
:root {
    --brand-primary: #c41e3a;
    --brand-primary-hover: #a01830;
    --brand-accent-light: #f59e0b;
    --adm-auth-bg: #070b14;
    --adm-auth-brand: linear-gradient(145deg, #1a1020 0%, #0f1628 48%, #070b14 100%);
    --adm-auth-brand-mobile: linear-gradient(180deg, #1a1020 0%, #0f1628 100%);
    --adm-auth-card: #0d1220;
    --adm-auth-input-bg: #070b14;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.adm-auth-page {
    margin: 0;
    font-family: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--adm-auth-bg);
    color: #e2e8f0;
    min-height: 100vh;
}

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

@media (min-width: 1024px) {
    .adm-auth-shell {
        flex-direction: row;
    }
}

.adm-auth-brand {
    display: none;
    position: relative;
    flex: 0 0 50%;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 2.5rem 2.5rem 3.5rem;
    background: var(--adm-auth-brand);
    overflow: hidden;
}

.adm-auth-brand-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.adm-auth-brand-video__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.adm-auth-brand-video__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, rgba(26, 16, 32, 0.72) 0%, rgba(15, 22, 40, 0.58) 48%, rgba(7, 11, 20, 0.82) 100%),
        radial-gradient(ellipse 55% 45% at 85% 20%, rgba(196, 30, 58, 0.22), transparent),
        radial-gradient(ellipse 40% 35% at 10% 90%, rgba(245, 158, 11, 0.12), transparent);
    pointer-events: none;
}

.adm-auth-brand--has-video {
    background: #070b14;
}

.adm-auth-brand--has-video::before {
    display: none;
}

.adm-auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 85% 20%, rgba(196, 30, 58, 0.18), transparent),
        radial-gradient(ellipse 40% 35% at 10% 90%, rgba(245, 158, 11, 0.1), transparent);
    pointer-events: none;
}

@media (min-width: 1024px) {
    .adm-auth-brand {
        display: flex;
    }
}

@media (min-width: 1280px) {
    .adm-auth-brand {
        padding: 3.5rem;
    }
}

.adm-auth-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.adm-auth-watermark-inner {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.05);
    filter: blur(1px);
    text-align: center;
    line-height: 1.4;
    padding: 2rem;
    transform: rotate(-8deg);
}

.adm-auth-watermark-inner .dot {
    display: inline-block;
    width: 0.35em;
    height: 0.35em;
    border-radius: 9999px;
    margin: 0 0.2em;
    vertical-align: middle;
}

.adm-auth-watermark-inner .dot.red {
    background: rgba(196, 30, 58, 0.45);
}

.adm-auth-watermark-inner .dot.green {
    background: rgba(245, 158, 11, 0.45);
}

.adm-auth-brand-top,
.adm-auth-brand-middle,
.adm-auth-brand-bottom {
    position: relative;
    z-index: 2;
}

.adm-auth-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.adm-auth-logo-ring {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.adm-auth-logo-ring img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.adm-auth-brand-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.25;
}

.adm-auth-brand-name span {
    color: var(--brand-primary);
}

.adm-auth-brand-tag {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #d4a574;
    font-weight: 600;
}

.adm-auth-headline {
    margin: 0 0 1rem;
    font-size: clamp(1.875rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    max-width: 28rem;
}

.adm-auth-tagline {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.625;
    color: rgba(248, 250, 252, 0.82);
    max-width: 28rem;
}

.adm-auth-copyright {
    margin: 0;
    font-size: 0.6875rem;
    color: rgba(148, 163, 184, 0.65);
}

.adm-auth-mobile-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--adm-auth-brand-mobile);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.adm-auth-brand-video--mobile {
    z-index: 0;
}

.adm-auth-brand-video--mobile .adm-auth-brand-video__overlay {
    background: linear-gradient(90deg, rgba(7, 11, 20, 0.88) 0%, rgba(15, 22, 40, 0.75) 100%);
}

.adm-auth-mobile-brand__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 1024px) {
    .adm-auth-mobile-brand {
        display: none;
    }
}

.adm-auth-mobile-brand .adm-auth-logo-ring {
    width: 2.5rem;
    height: 2.5rem;
}

.adm-auth-mobile-brand .adm-auth-logo-ring img {
    width: 2rem;
    height: 2rem;
}

.adm-auth-mobile-brand .adm-auth-brand-name {
    font-size: 0.875rem;
}

.adm-auth-mobile-brand .adm-auth-brand-tag {
    font-size: 0.5625rem;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

.adm-auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--adm-auth-bg);
}

@media (min-width: 1024px) {
    .adm-auth-main {
        min-height: 0;
    }
}

.adm-auth-main-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

@media (min-width: 640px) {
    .adm-auth-main-inner {
        padding: 2rem;
    }
}

.adm-auth-card {
    width: 100%;
    max-width: 400px;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: var(--adm-auth-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
    .adm-auth-card {
        padding: 2rem;
    }
}

.adm-auth-card-header {
    margin-bottom: 1.5rem;
}

.adm-auth-card-title {
    margin: 0 0 0.25rem;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #fff;
}

.adm-auth-card-subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: #94a3b8;
}

.adm-auth-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    border: 1px solid transparent;
}

.adm-auth-alert--error {
    background: rgba(196, 30, 58, 0.14);
    color: #fecaca;
    border-color: rgba(196, 30, 58, 0.35);
}

.adm-auth-alert--success {
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.3);
}

.adm-auth-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.35rem;
    margin-top: 0.85rem;
}

.adm-auth-label:first-of-type {
    margin-top: 0;
}

.adm-auth-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: var(--adm-auth-input-bg);
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.adm-auth-input::placeholder {
    color: #64748b;
}

.adm-auth-input:focus {
    outline: none;
    border-color: rgba(196, 30, 58, 0.55);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.18);
}

.adm-auth-submit {
    display: block;
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    background: var(--brand-primary);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.35);
}

.adm-auth-submit:hover {
    background: var(--brand-primary-hover);
    box-shadow: 0 6px 24px rgba(196, 30, 58, 0.45);
}

.adm-auth-forgot {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
}

.adm-auth-forgot:hover {
    color: var(--brand-primary);
}

.adm-auth-back {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.adm-auth-back:hover {
    color: var(--brand-accent-light);
}

.adm-auth-legal {
    margin: 1.5rem 0 0;
    max-width: 20rem;
    font-size: 0.625rem;
    line-height: 1.625;
    text-align: center;
    color: #64748b;
}

.adm-auth-legal a {
    color: #94a3b8;
    text-decoration: underline;
}

.adm-auth-legal a:hover {
    color: var(--brand-primary);
}
