/* Digi School ERP — dedicated authentication interface */
.auth-body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #f4f6fb;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(460px, .92fr);
}

.auth-showcase {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    color: #fff;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--secondary) 96%, #26304d), color-mix(in srgb, var(--primary) 74%, #111827));
}

.auth-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.auth-showcase::after {
    content: "";
    position: absolute;
    inset: auto -12% -28% 20%;
    z-index: -1;
    height: 58%;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent), transparent 44%), transparent 68%);
    filter: blur(10px);
}

.auth-showcase__glow {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
}

.auth-showcase__glow--one {
    width: 330px;
    height: 330px;
    top: -130px;
    right: -70px;
    background: color-mix(in srgb, var(--primary), transparent 64%);
}

.auth-showcase__glow--two {
    width: 230px;
    height: 230px;
    left: -80px;
    bottom: 8%;
    background: color-mix(in srgb, var(--accent), transparent 72%);
}

.auth-showcase__inner {
    width: min(100%, 820px);
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(34px, 5vw, 72px) clamp(30px, 6vw, 86px);
    display: flex;
    flex-direction: column;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    color: #fff;
}

.auth-brand__mark {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 16px;
    background: rgba(255,255,255,.14);
    box-shadow: 0 14px 34px rgba(0,0,0,.18);
    backdrop-filter: blur(14px);
    font: 800 1.02rem var(--display);
    letter-spacing: -.03em;
}

.auth-brand__text {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.auth-brand__text strong {
    max-width: 470px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 800 clamp(1rem, 1.4vw, 1.2rem) var(--display);
    letter-spacing: -.025em;
}

.auth-brand__text small {
    color: rgba(255,255,255,.68);
    font-size: .82rem;
    font-weight: 600;
}

.auth-copy {
    width: min(100%, 670px);
    margin: auto 0;
    padding: clamp(70px, 11vh, 130px) 0;
}

.auth-eyebrow {
    display: block;
    margin-bottom: 14px;
    color: color-mix(in srgb, var(--accent) 55%, #fff);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.auth-copy h1 {
    max-width: 640px;
    margin: 0;
    color: #fff;
    font: 800 clamp(2.75rem, 5.4vw, 5rem)/1.04 var(--display);
    letter-spacing: -.055em;
}

.auth-copy p {
    max-width: 600px;
    margin: 26px 0 0;
    color: rgba(255,255,255,.74);
    font-size: clamp(1.02rem, 1.45vw, 1.18rem);
    line-height: 1.75;
}

.auth-showcase__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.68);
    font-size: .85rem;
    font-weight: 600;
}

.auth-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 6px rgba(74,222,128,.14);
}

.auth-panel {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(30px, 5vw, 76px);
    background:
        radial-gradient(circle at 80% 12%, color-mix(in srgb, var(--primary), transparent 91%), transparent 30%),
        #f7f8fc;
}

.auth-panel__inner {
    width: min(100%, 510px);
}

.auth-card {
    width: 100%;
    padding: clamp(30px, 4vw, 48px);
    border: 1px solid rgba(214,219,232,.9);
    border-radius: 26px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 28px 80px rgba(31,42,68,.12);
}

.auth-card__heading {
    margin-bottom: 30px;
}

.auth-card__heading .auth-eyebrow {
    color: var(--primary);
    margin-bottom: 9px;
}

.auth-card h2 {
    margin: 0;
    color: var(--text);
    font: 800 clamp(1.75rem, 3vw, 2.3rem)/1.15 var(--display);
    letter-spacing: -.04em;
}

.auth-card__heading p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.65;
}

.auth-field {
    display: grid;
    gap: 9px;
    margin-bottom: 20px;
}

.auth-field label {
    color: #293247;
    font-size: .88rem;
    font-weight: 750;
}

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

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    fill: none;
    stroke: #8b94a7;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 47px;
    border: 1px solid #dce1eb;
    border-radius: 13px;
    outline: none;
    background: #fbfcfe;
    color: var(--text);
    font-size: .96rem;
    font-weight: 550;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.auth-input-wrap input::placeholder {
    color: #a0a7b5;
    font-weight: 450;
}

.auth-input-wrap input:hover {
    border-color: #c5ccda;
}

.auth-input-wrap input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary), transparent 88%);
}

.auth-input-wrap:focus-within .auth-input-icon {
    stroke: var(--primary);
}

.auth-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 7px;
    border-radius: 13px;
    font-size: .95rem;
    font-weight: 800;
}

.auth-submit svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s;
}

.auth-submit:hover svg {
    transform: translateX(3px);
}

.auth-card__security {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
    color: #727b8e;
    font-size: .76rem;
    line-height: 1.5;
    text-align: left;
}

.auth-card__security svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 1px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-help {
    margin: 20px 0 0;
    color: #7b8495;
    font-size: .82rem;
    font-weight: 550;
    text-align: center;
}

.auth-card .alert {
    margin: 0 0 22px;
}

@media (max-width: 1050px) {
    .auth-shell {
        grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
    }

    .auth-copy h1 {
        font-size: clamp(2.35rem, 5vw, 3.8rem);
    }
}

@media (max-width: 820px) {
    .auth-shell {
        display: block;
        min-height: 100vh;
    }

    .auth-showcase {
        min-height: auto;
    }

    .auth-showcase__inner {
        min-height: auto;
        padding: 28px 24px 42px;
    }

    .auth-copy {
        margin: 48px 0 30px;
        padding: 0;
    }

    .auth-copy h1 {
        max-width: 560px;
        font-size: clamp(2.15rem, 9vw, 3.5rem);
    }

    .auth-copy p {
        margin-top: 18px;
    }

    .auth-showcase__footer {
        display: none;
    }

    .auth-panel {
        min-height: auto;
        padding: 34px 20px 54px;
    }

    .auth-card {
        margin-top: -2px;
    }
}

@media (max-width: 520px) {
    .auth-brand__mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 14px;
    }

    .auth-brand__text strong {
        max-width: 260px;
    }

    .auth-copy h1 {
        font-size: 2.35rem;
    }

    .auth-copy p {
        font-size: .96rem;
    }

    .auth-panel {
        padding-inline: 14px;
    }

    .auth-card {
        padding: 27px 20px;
        border-radius: 20px;
    }

    .auth-card h2 {
        font-size: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-submit,
    .auth-submit svg,
    .auth-input-wrap input {
        transition: none;
    }
}

/* Digi School ERP v2.1.2 — uploaded school logo */
.auth-brand__mark--logo{
    overflow:hidden;
    padding:5px;
    background:rgba(255,255,255,.96);
    border-color:rgba(255,255,255,.55);
}
.auth-brand__mark--logo img{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
    border-radius:11px;
}
