.auth-page {
    --auth-ink: #10213f;
    --auth-muted: #61708d;
    --auth-line: #dbe4f5;
    --auth-card: #ffffff;
    --auth-brand-1: #1f56d8;
    --auth-brand-2: #1ea08d;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(31, 86, 216, 0.18), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(30, 160, 141, 0.16), transparent 36%),
        linear-gradient(180deg, #f4f8ff 0%, #eef4ff 100%);
    font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--auth-ink);
    padding: 48px 14px;
}

.auth-frame {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.auth-shell {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.2fr);
    background: var(--auth-card);
    border: 1px solid var(--auth-line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 54px rgba(15, 35, 80, 0.12);
}

.auth-brand {
    padding: 30px;
    color: #fff;
    background: linear-gradient(145deg, #173f99 0%, #255ecf 55%, #138d7c 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.auth-brand h1 {
    margin: 10px 0 8px;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.25;
    font-weight: 700;
    color: #fff;
}

.auth-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    line-height: 1.6;
}

.auth-help {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.88);
}

.auth-panel {
    padding: 30px;
}

.auth-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 6px;
}

.auth-school-name {
    margin-top: 10px;
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
}

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

.auth-sub {
    margin: 0 0 20px;
    color: var(--auth-muted);
    font-size: 0.9rem;
}

.auth-group {
    margin-bottom: 14px;
}

.auth-group label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.84rem;
    color: #334a73;
    font-weight: 600;
}

.auth-input {
    width: 100%;
    border: 1px solid #cfdbf4;
    border-radius: 11px;
    padding: 11px 13px;
    font-size: 0.92rem;
    color: #152648;
    background: #f9fbff;
}

.auth-input:focus {
    outline: none;
    border-color: #4f7ee6;
    box-shadow: 0 0 0 3px rgba(79, 126, 230, 0.15);
    background: #fff;
}

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

.auth-link {
    color: #2455c2;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    border: 0;
    border-radius: 11px;
    padding: 12px 14px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--auth-brand-1), #1744ad);
}

.auth-btn:hover {
    filter: brightness(1.02);
}

.auth-foot {
    margin-top: 14px;
    color: #7b88a2;
    font-size: 0.8rem;
    text-align: center;
}

.auth-alert {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.auth-alert-danger {
    color: #9c1e2a;
    background: #ffeef0;
    border: 1px solid #f7c7ce;
}

.auth-alert-success {
    color: #0f6f44;
    background: #eaf9f0;
    border: 1px solid #bbe8cf;
}

.auth-error {
    color: #c43343;
    font-size: 0.78rem;
    margin-top: 4px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.84rem;
    color: #3b4f77;
}

.auth-back {
    margin-top: 14px;
    text-align: right;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: 20px;
    }

    .auth-panel {
        padding: 22px 18px;
    }
}

.auth-brand-main {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-brand-main p {
    text-align: center;
    max-width: 460px;
}

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

.auth-input-password {
    padding-right: 44px;
}

.auth-pass-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #4f6288;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.auth-pass-toggle:hover {
    background: rgba(31, 86, 216, 0.08);
    color: #1f56d8;
}

.auth-pass-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(31, 86, 216, 0.2);
}
