/* ==========================================================================
   SIATEX UI — shared page patterns (loaded on every admin page)
   ========================================================================== */

:root {
    --shero-from: #0A2A66;
    --shero-mid: #14509E;
    --shero-to: #1B84FF;
    --shero-radius: 1.25rem;
}

/* --------------------------------------------------------------------------
   Page hero: gradient cover (title/context) + white toolbar (filters)
   -------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #E4E7EF;
    border-radius: var(--shero-radius);
    box-shadow: 0 12px 34px rgba(14, 38, 78, .07);
}

.page-hero-cover {
    position: relative;
    isolation: isolate;
    padding: 1.9rem 2rem 2rem;
    color: #FFFFFF;
    background-color: var(--shero-mid);
}

/* blueprint grid texture, faded towards the bottom */
.page-hero-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .95), transparent 88%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .95), transparent 88%);
}

/* corner glow */
.page-hero-cover::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -110px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, 0) 70%);
}

.page-hero-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.page-hero-icon {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .24);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.page-hero-icon i,
.page-hero-icon .svg-icon {
    font-size: 1.65rem;
    color: #FFFFFF !important;
}

.page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #FFFFFF;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.page-hero-title {
    margin: .7rem 0 .4rem;
    color: #FFFFFF;
    font-weight: 700;
    font-size: clamp(1.6rem, 1.1rem + 1.3vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: -.02em;
}

.page-hero-sub {
    margin: 0;
    max-width: 60ch;
    color: rgba(255, 255, 255, .82);
    font-size: .95rem;
    font-weight: 500;
}

/* glass chips for contextual info (selected school, period, …) */
.page-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.25rem;
}

.page-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #FFFFFF;
    font-size: .8rem;
    font-weight: 600;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.page-hero-chip i {
    color: rgba(255, 255, 255, .8) !important;
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Toolbar (filter row) sitting under the cover
   -------------------------------------------------------------------------- */
.page-hero-toolbar {
    padding: 1.35rem 2rem 1.5rem;
    background: #FFFFFF;
}

.page-hero-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .85rem;
}

.page-hero-field {
    flex: 1 1 190px;
    min-width: 170px;
}

.page-hero-field--sm {
    flex: 0 1 165px;
}

.page-hero-toolbar .form-label {
    margin-bottom: .4rem;
    color: #78829D;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.page-hero-toolbar .form-control,
.page-hero-toolbar .form-select {
    min-height: 46px;
    background-color: #F4F6FA;
    border: 1px solid #E5E9F2;
    border-radius: .85rem;
    color: #15171C;
    font-weight: 500;
    box-shadow: none;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.page-hero-toolbar .form-control:hover,
.page-hero-toolbar .form-select:hover {
    background-color: #EFF3F9;
}

.page-hero-toolbar .form-control:focus,
.page-hero-toolbar .form-select:focus {
    background-color: #FFFFFF;
    border-color: #A9D0FF;
    box-shadow: 0 0 0 4px rgba(27, 132, 255, .13);
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
}

/* --------------------------------------------------------------------------
   Buttons used inside the hero toolbar
   -------------------------------------------------------------------------- */
.btn.btn-hero,
.btn.btn-hero-light {
    min-height: 46px;
    padding: .65rem 1.25rem;
    border-radius: .85rem;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn.btn-hero {
    border: 0;
    color: #FFFFFF;
    background-color: #1B84FF;
    box-shadow: 0 8px 18px rgba(27, 132, 255, .28);
}

.btn.btn-hero i,
.btn.btn-hero .ki-duotone {
    color: #FFFFFF !important;
}

.btn.btn-hero .ki-duotone .path1,
.btn.btn-hero .ki-duotone .path2,
.btn.btn-hero .ki-duotone .path3,
.btn.btn-hero .ki-duotone .path4,
.btn.btn-hero .ki-duotone .path5 {
    fill: #FFFFFF !important;
}

.btn.btn-hero:hover,
.btn.btn-hero:focus,
.btn.btn-hero:active {
    color: #FFFFFF;
    background-color: #1570DB;
    box-shadow: 0 12px 24px rgba(27, 132, 255, .34);
    transform: translateY(-1px);
}

.btn.btn-hero:disabled {
    box-shadow: none;
    transform: none;
    opacity: .65;
}

.btn.btn-hero-light {
    background-color: #EEF4FF;
    border: 1px solid #DCE8FF;
    color: #1B84FF;
}

.btn.btn-hero-light:hover,
.btn.btn-hero-light:focus,
.btn.btn-hero-light:active {
    background-color: #E2EDFF;
    border-color: #CBDEFF;
    color: #0B62D6;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Empty state placeholder that pairs with the hero
   -------------------------------------------------------------------------- */
.page-empty {
    border: 1px dashed #D8DDE9;
    border-radius: var(--shero-radius);
    background: #FFFFFF;
}

.page-empty-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F1F5FC;
    border: 1px solid #E4EBF6;
}

.page-empty-icon i {
    font-size: 2.25rem;
    color: #8FB8EA !important;
}

@media (max-width: 767.98px) {
    .page-hero-cover {
        padding: 1.5rem 1.25rem 1.6rem;
    }

    .page-hero-toolbar {
        padding: 1.1rem 1.25rem 1.25rem;
    }

    .page-hero-icon {
        width: 46px;
        height: 46px;
        border-radius: .85rem;
    }

    .page-hero-icon i {
        font-size: 1.35rem;
    }

    .page-hero-field,
    .page-hero-field--sm {
        flex: 1 1 100%;
    }

    .page-hero-actions,
    .page-hero-actions .btn {
        width: 100%;
    }

    .page-hero-actions .btn {
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   Dark theme
   -------------------------------------------------------------------------- */
[data-bs-theme="dark"] .page-hero {
    background: #1E1E2D;
    border-color: #2B2B40;
    box-shadow: none;
}

[data-bs-theme="dark"] .page-hero-toolbar {
    background: #1E1E2D;
}

[data-bs-theme="dark"] .page-hero-toolbar .form-control,
[data-bs-theme="dark"] .page-hero-toolbar .form-select {
    background-color: #2B2B40;
    border-color: #323248;
    color: #F5F5F5;
}

[data-bs-theme="dark"] .page-empty {
    background: #1E1E2D;
    border-color: #323248;
}

[data-bs-theme="dark"] .page-empty-icon {
    background: #2B2B40;
    border-color: #323248;
}

/* --------------------------------------------------------------------------
   Legacy `.dash-hero` pages: soften card until they migrate to .page-hero
   -------------------------------------------------------------------------- */
.dash-hero {
    border-radius: var(--shero-radius);
    box-shadow: 0 12px 34px rgba(14, 38, 78, .06);
}

/* --------------------------------------------------------------------------
   School directory (master-sekolah)
   -------------------------------------------------------------------------- */
.school-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1.15rem 1.25rem;
    background: #FFFFFF;
    border: 1px solid #E4E7EF;
    border-radius: 1.1rem;
    box-shadow: 0 8px 22px rgba(14, 38, 78, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.school-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(14, 38, 78, .1);
}

.school-stat-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .9rem;
    color: #FFFFFF;
}

.school-stat-icon i {
    font-size: 1.35rem;
    color: #FFFFFF !important;
}

.school-stat-value {
    color: #15171C;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.school-stat-label {
    color: #78829D;
    font-size: .78rem;
    font-weight: 600;
}

.school-city-label {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: .35rem 0 1rem;
    color: #3F4254;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.school-city-label::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #E4E7EF;
}

.school-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    background: #FFFFFF;
    border: 1px solid #E8EBF2;
    border-radius: 1.15rem;
    box-shadow: 0 10px 24px rgba(14, 38, 78, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.school-card:hover {
    transform: translateY(-5px);
    border-color: #B5D5FF;
    box-shadow: 0 18px 36px rgba(15, 42, 81, .12);
}

.school-card .fs-4 {
    overflow-wrap: anywhere;
}

.school-card-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #FFFFFF;
    border: 1px solid #EEF0F4;
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 8px 18px rgba(15, 42, 81, .08);
}

.school-card-logo.is-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B84FF;
    background: #EEF6FF;
    font-size: 1.15rem;
    font-weight: 800;
}

.school-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .28rem .55rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1;
}

.school-pill.is-on {
    background: #E8FFF3;
    color: #17C653;
}

.school-pill.is-off {
    background: #F4F6FA;
    color: #A1A5B7;
}

.school-meta {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    color: #5E6278;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.4;
}

.school-meta i {
    margin-top: 1px;
    color: #A1A5B7 !important;
}

.school-form-card {
    background: #FFFFFF;
    border: 1px solid #E4E7EF;
    border-radius: 1.15rem;
    box-shadow: 0 10px 24px rgba(14, 38, 78, .05);
}

.school-form-card .form-control,
.school-form-card .form-select,
.school-form-card textarea.form-control {
    min-height: 46px;
    background-color: #F4F6FA;
    border: 1px solid #E5E9F2;
    border-radius: .85rem;
    color: #15171C;
    font-weight: 500;
    box-shadow: none;
}

.school-form-card textarea.form-control {
    min-height: 96px;
}

.school-form-card .form-control:focus,
.school-form-card .form-select:focus,
.school-form-card textarea.form-control:focus {
    background-color: #FFFFFF;
    border-color: #A9D0FF;
    box-shadow: 0 0 0 4px rgba(27, 132, 255, .13);
}

.school-form-card .form-label {
    color: #3F4254;
    font-size: .82rem;
    font-weight: 700;
}

.school-form-card .form-label.required:after {
    content: " *";
    color: #F1416C;
}

.school-profile-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px dashed #E8EBF2;
}

.school-profile-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.school-profile-label {
    color: #78829D;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.school-profile-value {
    color: #15171C;
    font-size: .95rem;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.school-link-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.1rem;
    background: #F8FAFC;
    border: 1px solid #E8EBF2;
    border-radius: .95rem;
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease;
}

.school-link-card:hover {
    background: #EEF6FF;
    border-color: #B5D5FF;
}

[data-bs-theme="dark"] .school-stat,
[data-bs-theme="dark"] .school-card,
[data-bs-theme="dark"] .school-form-card {
    background: #1E1E2D;
    border-color: #2B2B40;
    box-shadow: none;
}

[data-bs-theme="dark"] .school-stat-value,
[data-bs-theme="dark"] .school-profile-value,
[data-bs-theme="dark"] .school-city-label {
    color: #F5F5F5;
}

[data-bs-theme="dark"] .school-city-label::after {
    background: #2B2B40;
}

[data-bs-theme="dark"] .school-profile-row {
    border-color: #2B2B40;
}

[data-bs-theme="dark"] .school-link-card {
    background: #2B2B40;
    border-color: #323248;
}

[data-bs-theme="dark"] .school-form-card .form-control,
[data-bs-theme="dark"] .school-form-card .form-select,
[data-bs-theme="dark"] .school-form-card textarea.form-control {
    background-color: #2B2B40;
    border-color: #323248;
    color: #F5F5F5;
}

/* ── Enhanced DataTable Card ── */
.dt-card {
    background: #fff;
    border: 1px solid #F1F1F4;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.dt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #F1F1F4;
    flex-wrap: wrap;
}
.dt-card-header .dt-search {
    position: relative;
}
.dt-card-header .dt-search i {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #99A1B7;
    font-size: 1.1rem;
}
.dt-card-header .dt-search input {
    padding-left: 2.5rem;
    border-radius: .65rem;
    border: 1px solid #E1E3EA;
    background: #F9F9F9;
    height: 40px;
    min-width: 240px;
    transition: border-color .2s, box-shadow .2s;
}
.dt-card-header .dt-search input:focus {
    border-color: #1B84FF;
    box-shadow: 0 0 0 3px rgba(27,132,255,.12);
    background: #fff;
}
.dt-card-header .dt-info {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #78829D;
    font-size: .85rem;
    font-weight: 500;
}
.dt-card-header .dt-info .dt-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1B84FF;
    color: #fff;
    font-weight: 600;
    font-size: .75rem;
    min-width: 26px;
    height: 26px;
    border-radius: 8px;
    padding: 0 .5rem;
}
.dt-card .table {
    margin-bottom: 0;
}
.dt-card .dt-card-footer,
.dt-card .dataTables_wrapper .row:last-child {
    padding: .65rem 1.5rem;
    border-top: 1px solid #F1F1F4;
    background: #FAFBFC;
}

/* hide default datatable controls — we use custom search */
.dt-card .dataTables_length,
.dt-card .dataTables_filter {
    display: none !important;
}
.dt-card .dataTables_info {
    font-size: .82rem;
    color: #99A1B7;
}
.dt-card .dataTables_paginate {
    padding: 0;
}
.dt-card .dataTables_paginate .paginate_button {
    border-radius: .5rem !important;
    margin: 0 .15rem;
    padding: .3rem .7rem !important;
    font-size: .82rem;
}
.dt-card .table thead th:last-child,
.dt-card .table tbody td:last-child {
    text-align: right;
    padding-right: 1.5rem;
    white-space: nowrap;
}
.dt-card .table thead th:first-child,
.dt-card .table tbody td:first-child {
    padding-left: 1.5rem;
}
.dt-card .table thead th {
    color: #78829D;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .85rem 1rem;
    white-space: nowrap;
    border: none;
    background: #F9FAFB;
    border-bottom: 2px solid #F1F1F4;
}
.dt-card .table tbody td {
    padding: .85rem 1rem;
    color: #3F4254;
    font-weight: 500;
    vertical-align: middle;
    border-bottom: 1px solid #F4F4F8;
}
.dt-card .table tbody tr:last-child td {
    border-bottom: none;
}
.dt-card .table tbody tr:hover td {
    background: #F8F9FD;
}
.dt-card .dataTables_processing {
    background: rgba(255,255,255,.85) !important;
    border: none !important;
    box-shadow: none !important;
}
[data-bs-theme="dark"] .dt-card .table thead th {
    background: #252536;
    border-color: #2B2B40;
    color: #78829D;
}
[data-bs-theme="dark"] .dt-card .table tbody td {
    color: #CDCDD4;
    border-color: #2B2B40;
}
[data-bs-theme="dark"] .dt-card .table tbody tr:hover td {
    background: #252536;
}

[data-bs-theme="dark"] .dt-card {
    background: #1E1E2D;
    border-color: #2B2B40;
}
[data-bs-theme="dark"] .dt-card-header {
    border-color: #2B2B40;
}
[data-bs-theme="dark"] .dt-card-header .dt-search input {
    background: #2B2B40;
    border-color: #323248;
    color: #F5F5F5;
}
[data-bs-theme="dark"] .dt-card-header .dt-search input:focus {
    border-color: #1B84FF;
}
[data-bs-theme="dark"] .dt-card .dataTables_wrapper .row:last-child,
[data-bs-theme="dark"] .dt-card .dt-card-footer {
    background: #1B1B29;
    border-color: #2B2B40;
}

/* ==========================================================================
   Auth pages — login & 2FA
   ========================================================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .auth-page {
        flex-direction: row;
    }
}

/* --- Brand panel (left) --- */
.auth-brand-panel {
    position: relative;
    isolation: isolate;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2rem 3rem;
    color: #FFFFFF;
    background: linear-gradient(145deg, var(--shero-from) 0%, var(--shero-mid) 48%, var(--shero-to) 100%);
    overflow: hidden;
}

@media (min-width: 992px) {
    .auth-brand-panel {
        flex: 0 0 52%;
        min-height: 100vh;
        padding: 3rem 3.5rem;
    }
}

.auth-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .95), transparent 92%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .95), transparent 92%);
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: -120px;
    left: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 70%);
}

.auth-brand-inner {
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.auth-brand-head {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    margin-bottom: 1.75rem;
}

.auth-brand-head-text {
    flex: 1;
    min-width: 0;
}

.auth-brand-logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    border-radius: 1.25rem;
    background: #FFFFFF;
    padding: 12px;
    border: none;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, .22),
        0 0 0 4px rgba(255, 255, 255, .18);
}

.auth-brand-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.auth-brand-logo-wrap--sm {
    width: 56px;
    height: 56px;
    padding: 7px;
    border-radius: .85rem;
    box-shadow: 0 6px 20px rgba(14, 38, 78, .14);
}

.auth-brand-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .32rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    font-family: 'Inter', sans-serif;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .92);
    margin-bottom: .65rem;
}

.auth-brand-title {
    margin: 0;
    line-height: 1;
    color: #FFFFFF !important;
}

.auth-brand-title-primary {
    display: block;
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
    margin-bottom: .2rem;
}

.auth-brand-title-secondary {
    display: block;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: #FFFFFF;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .18);
    background: linear-gradient(135deg, #FFFFFF 30%, rgba(186, 220, 255, .95) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-brand-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .88);
    margin-bottom: 2rem;
    max-width: 460px;
    padding-left: 1rem;
    border-left: 3px solid rgba(255, 255, 255, .35);
}

.auth-brand-subtitle strong {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    color: #FFFFFF;
    margin-bottom: .35rem;
    line-height: 1.45;
}

.auth-brand-subtitle-desc {
    display: block;
    font-weight: 400;
    color: rgba(255, 255, 255, .72);
    font-size: .88rem;
}

.auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    margin-bottom: 2.25rem;
}

@media (min-width: 576px) {
    .auth-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .8rem 1rem;
    border-radius: .85rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: rgba(255, 255, 255, .95);
    transition: background .2s ease, transform .2s ease;
}

.auth-feature-item:hover {
    background: rgba(255, 255, 255, .16);
    transform: translateY(-1px);
}

.auth-feature-item i {
    font-size: 1.2rem;
    opacity: 1;
    color: rgba(186, 220, 255, .95) !important;
}

.auth-school-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
}

.auth-school-strip-label {
    font-family: 'Inter', sans-serif;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    width: 100%;
    margin-bottom: .35rem;
}

.auth-school-badge {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #FFFFFF;
    padding: 5px;
    object-fit: contain;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
    transition: transform .2s ease, box-shadow .2s ease;
}

.auth-school-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

/* --- Form panel (right) --- */
.auth-form-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.25rem 2.5rem;
    background: #F4F6FA;
}

@media (min-width: 992px) {
    .auth-form-panel {
        flex: 0 0 48%;
        min-height: 100vh;
        padding: 3rem 2.5rem;
    }
}

.auth-form-card {
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    border: 1px solid #E4E7EF;
    border-radius: 1.25rem;
    box-shadow: 0 16px 48px rgba(14, 38, 78, .08);
    padding: 2.25rem 2rem 2rem;
}

@media (min-width: 576px) {
    .auth-form-card {
        padding: 2.5rem 2.25rem 2.25rem;
    }
}

.auth-form-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-form-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    padding: 10px;
    border-radius: 1rem;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(14, 38, 78, .1);
    border: 1px solid #E4E7EF;
}

.auth-form-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.auth-form-header h1 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #181C32;
    margin-bottom: .45rem;
    letter-spacing: -.03em;
}

.auth-form-header p {
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    color: #7E8299;
    margin: 0;
    font-weight: 500;
}

.auth-input-group {
    position: relative;
    margin-bottom: 1.15rem;
}

.auth-input-group .auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #A1A5B7;
    pointer-events: none;
    z-index: 2;
}

.auth-input-group .form-control {
    padding: .85rem 1rem .85rem 2.75rem;
    border-radius: .75rem;
    border: 1px solid #E4E7EF;
    background: #F9FAFB;
    font-size: .925rem;
    font-weight: 500;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-input-group .form-control:focus {
    background: #FFFFFF;
    border-color: var(--shero-to);
    box-shadow: 0 0 0 3px rgba(27, 132, 255, .12);
}

.auth-input-group .auth-toggle-pw {
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #A1A5B7;
    border: none;
    background: transparent;
    padding: .35rem;
    line-height: 1;
    z-index: 2;
}

.auth-input-group .auth-toggle-pw:hover {
    color: var(--shero-to);
}

.auth-btn-primary {
    width: 100%;
    padding: .9rem 1.25rem;
    border-radius: .75rem;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .01em;
    background: linear-gradient(135deg, var(--shero-mid) 0%, var(--shero-to) 100%);
    border: none;
    box-shadow: 0 8px 24px rgba(27, 132, 255, .28);
    transition: transform .15s ease, box-shadow .15s ease;
}

.auth-btn-primary:hover,
.auth-btn-primary:focus {
    background: linear-gradient(135deg, var(--shero-from) 0%, var(--shero-mid) 100%);
    box-shadow: 0 10px 28px rgba(27, 132, 255, .35);
    transform: translateY(-1px);
}

.auth-btn-google {
    border-radius: .75rem !important;
    padding: .75rem 1rem !important;
    font-weight: 600 !important;
}

.auth-separator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #A1A5B7;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.auth-separator::before,
.auth-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #E4E7EF;
}

.auth-form-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #F1F1F4;
}

.auth-form-footer a {
    color: var(--shero-to);
    font-weight: 600;
    text-decoration: none;
}

.auth-form-footer a:hover {
    color: var(--shero-mid);
    text-decoration: underline;
}

.auth-mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .auth-mobile-logo {
        display: none;
    }
}

.auth-mobile-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.auth-mobile-logo-primary {
    font-weight: 500;
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #7E8299;
}

.auth-mobile-logo-secondary {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -.02em;
    color: #181C32;
}

.auth-alert {
    border-radius: .75rem;
    border: none;
    background: #FFF5F8;
    padding: .85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: .875rem;
}

.form-save-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #EFF2F5;
}

[data-bs-theme="dark"] .form-save-bar {
    border-top-color: rgba(255, 255, 255, .08);
}

.table thead th.col-action,
.table tbody td.col-action {
    text-align: right !important;
    white-space: nowrap;
    width: 1%;
    vertical-align: middle;
}

.table tbody td.col-action .btn-icon + .btn-icon {
    margin-left: .25rem;
}
