/* SmartSchool Pro UI Patch: separated auth, polished frontend menu, admin profile. */
.pro-front-card {
    border-radius: 26px;
    border-color: rgba(7, 58, 120, .14);
}

.pro-front-header {
    align-items: center;
    gap: 18px;
    padding: 10px;
    border: 1px solid rgba(7, 58, 120, .10);
    border-radius: 22px;
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 18px 40px rgba(7, 58, 120, .08);
    backdrop-filter: blur(18px);
}

.pro-brand {
    padding: 8px 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.pro-brand span:last-child {
    display: grid;
    line-height: 1.08;
}

.pro-brand strong {
    font-size: 16px;
    letter-spacing: -.02em;
}

.pro-brand small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.pro-front-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.pro-front-nav .su-top-link,
.pro-logout button,
.auth-links a,
.topbar-link {
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.pro-front-nav .su-top-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid rgba(7, 58, 120, .12);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(7, 58, 120, .06);
    white-space: nowrap;
}

.pro-front-nav .su-top-link:hover,
.pro-front-nav .su-top-link.active {
    transform: translateY(-1px);
    background: var(--navy);
    color: #fff;
    box-shadow: 0 12px 26px rgba(7, 58, 120, .16);
}

.pro-front-nav .auth-entry {
    background: #eef6ff;
}

.pro-front-nav .admin-entry {
    border-color: rgba(5, 47, 99, .25);
    background: linear-gradient(135deg, #071f42, #073a78);
    color: #fff;
}

.pro-logout {
    margin: 0;
}

.pro-logout button {
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 9px 13px;
    background: #f8fafc;
    color: var(--navy);
    cursor: pointer;
    font-weight: 900;
}

.pro-logout button:hover {
    transform: translateY(-1px);
    background: #fee2e2;
    color: #991b1b;
}

.auth-only-body {
    background:
        radial-gradient(circle at 10% 10%, rgba(7, 58, 120, .13), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(14, 165, 233, .16), transparent 30%),
        linear-gradient(135deg, #f7fbff, #eef6ff 58%, #ffffff);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-wrap {
    width: min(960px, 100%);
    display: grid;
    gap: 18px;
    justify-items: center;
}

.auth-brand {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(7, 58, 120, .12);
    box-shadow: 0 16px 34px rgba(7, 58, 120, .10);
}

.auth-card,
.auth-register-page {
    width: min(520px, 100%);
    position: relative;
    z-index: 1;
}

.auth-register-page {
    width: min(920px, 100%);
}

.auth-card {
    border: 1px solid rgba(7, 58, 120, .14);
    border-radius: 26px;
    padding: 28px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 26px 70px rgba(7, 58, 120, .15);
}

.admin-auth-card {
    border-color: rgba(5, 47, 99, .24);
}

.auth-head {
    text-align: center;
    margin-bottom: 22px;
}

.auth-head h1 {
    margin: 12px 0 0;
    font-size: clamp(26px, 4vw, 34px);
    letter-spacing: -.04em;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef6ff;
    color: var(--navy);
    font-weight: 900;
    font-size: 13px;
}

.auth-badge.admin {
    background: #061f42;
    color: #fff;
}

.auth-form label:first-child {
    margin-top: 0;
}

.auth-check {
    margin: 16px 0;
}

.auth-links {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    text-align: center;
}

.auth-links.compact {
    grid-template-columns: repeat(2, 1fr);
}

.auth-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid rgba(7, 58, 120, .12);
    color: var(--navy);
    font-weight: 900;
}

.auth-links a:hover {
    transform: translateY(-1px);
    background: var(--navy);
    color: #fff;
}

.auth-register-form {
    text-align: left;
    border-radius: 22px;
}

.admin-profile-card {
    max-width: 980px;
}

.admin-section-title {
    margin: 28px 0 12px;
    padding-top: 18px;
    border-top: 1px solid #edf1f6;
}

.admin-section-title h4,
.admin-section-title p {
    margin: 0;
}

.form-grid.three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

.admin-nav .nav-group-title .nav-chevron {
    margin-left: auto;
}

.admin-nav .nav-group-title:hover {
    background: rgba(255,255,255,.12);
}

@media (max-width: 980px) {
    .pro-front-header {
        align-items: stretch;
    }

    .pro-front-nav {
        justify-content: flex-start;
    }

    .auth-shell {
        padding: 14px;
        place-items: start center;
    }

    .auth-card {
        padding: 22px;
    }

    .form-grid.three,
    .auth-links.compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .pro-front-header {
        display: grid;
    }

    .pro-front-nav .su-top-link,
    .pro-logout button {
        width: 100%;
    }
}

.su-btn.ghost {
    background: #f8fbff;
    color: var(--navy);
    border-color: rgba(7, 58, 120, .15);
}
