/*
|--------------------------------------------------------------------------
| Bayaan Academy Portal
| Shared Portal Design
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    color: #ffffff;
}


/*
|--------------------------------------------------------------------------
| SHARED PORTAL PAGE
|--------------------------------------------------------------------------
*/

.login-page,
.mfa-page {
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 25px 15px;

    position: relative;

    background:
        url("../images/islamic-school-bg.jpg")
        center center / cover
        no-repeat fixed;
}


/*
|--------------------------------------------------------------------------
| BACKGROUND OVERLAY
|--------------------------------------------------------------------------
*/

.page-overlay {
    position: fixed;
    inset: 0;

    background:
        rgba(7, 27, 48, 0.68);

    z-index: 0;
}


/*
|--------------------------------------------------------------------------
| SHARED WRAPPER
|--------------------------------------------------------------------------
*/

.login-wrapper,
.mfa-wrapper {
    width: 100%;
    max-width: 410px;

    position: relative;

    z-index: 1;
}


/*
|--------------------------------------------------------------------------
| SHARED GLASS CARD
|--------------------------------------------------------------------------
*/

.login-card,
.mfa-card {
    width: 100%;

    padding:
        32px 34px 25px;

    background:
        rgba(7, 27, 48, 0.42);

    border:
        1px solid rgba(255, 255, 255, 0.22);

    border-radius: 14px;

    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.30);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/*
|--------------------------------------------------------------------------
| SHARED BRANDING
|--------------------------------------------------------------------------
*/

.brand,
.mfa-brand {
    text-align: center;
}

.brand-logo,
.mfa-logo {
    display: block;

    width: 110px;
    height: 110px;

    object-fit: contain;

    margin:
        0 auto 12px;

    filter:
        drop-shadow(
            0 3px 6px rgba(0, 0, 0, 0.35)
        );
}

.brand h1,
.mfa-brand h1 {
    margin: 0;

    color: #ffffff;

    font-size: 25px;

    font-weight: 700;

    letter-spacing: 0.1px;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.45);
}

.brand p,
.mfa-brand p {
    margin:
        6px 0 0;

    color:
        rgba(255, 255, 255, 0.88);

    font-size: 11px;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.45);
}


/*
|--------------------------------------------------------------------------
| SHARED GOLD DIVIDER
|--------------------------------------------------------------------------
*/

.gold-divider,
.mfa-divider,
.gold-line {
    width: 52px;
    height: 3px;

    margin:
        20px auto 24px;

    background:
        #c9a227;

    border-radius: 5px;

    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.30);
}


/*
|--------------------------------------------------------------------------
| SHARED FOOTER
|--------------------------------------------------------------------------
*/

.portal-footer {
    margin-top: 20px;

    padding-top: 16px;

    border-top:
        1px solid rgba(255, 255, 255, 0.25);

    text-align: center;

    line-height: 1.5;
}

.portal-footer span {
    display: block;

    color:
        rgba(255, 255, 255, 0.70);

    font-size: 9px;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.40);
}

.portal-footer strong {
    display: block;

    margin:
        1px 0;

    color:
        #ffffff;

    font-size: 10px;

    font-weight: 600;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.40);
}

.portal-footer small {
    display: block;

    color:
        rgba(255, 255, 255, 0.60);

    font-size: 8px;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.40);
}


/*
|--------------------------------------------------------------------------
| SHARED MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .login-page,
    .mfa-page {
        padding:
            18px 12px;

        background-attachment:
            scroll;
    }

    .login-wrapper,
    .mfa-wrapper {
        max-width: 390px;
    }

    .login-card,
    .mfa-card {
        padding:
            27px 22px 22px;

        border-radius: 13px;
    }

    .brand-logo,
    .mfa-logo {
        width: 95px;
        height: 95px;

        margin-bottom: 10px;
    }

    .brand h1,
    .mfa-brand h1 {
        font-size: 21px;
    }

    .brand p,
    .mfa-brand p {
        font-size: 10px;
    }

    .gold-divider,
    .mfa-divider,
    .gold-line {
        margin:
            17px auto 21px;
    }

    .portal-footer {
        margin-top: 18px;

        padding-top: 14px;
    }
}


/*
|--------------------------------------------------------------------------
| SMALL PHONES
|--------------------------------------------------------------------------
*/

@media (max-width: 360px) {

    .login-page,
    .mfa-page {
        padding:
            12px 9px;
    }

    .login-card,
    .mfa-card {
        padding:
            23px 18px 19px;
    }

    .brand-logo,
    .mfa-logo {
        width: 82px;
        height: 82px;
    }

    .brand h1,
    .mfa-brand h1 {
        font-size: 19px;
    }

    .gold-divider,
    .mfa-divider,
    .gold-line {
        margin:
            14px auto 18px;
    }
}

.admin-preview-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 20px;
    margin-bottom: 24px;
    border: 1px solid #d6b45c;
    border-radius: 8px;
    background: #fff8e5;
    color: #5f4b16;
}

.admin-preview-banner strong {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.admin-preview-banner span {
    flex: 1;
    font-size: 13px;
}

.admin-preview-banner a {
    font-size: 13px;
    font-weight: 600;
    color: #1f4f82;
    text-decoration: none;
}

.admin-preview-banner a:hover {
    text-decoration: underline;
}

/* =========================================================
   TEACHER SUBMIT TICKET
   Form Section Spacing
   ========================================================= */

.portal-form .form-section {
    margin-bottom: 28px;
}

.portal-form .form-section-title {
    margin-bottom: 20px;
}


/* =========================================================
   URGENT PRIORITY NOTICE
   ========================================================= */

.portal-form .ticket-priority-notice {
    display: flex;
    flex-direction: column;
    gap: 6px;

    margin-top: 30px;
    margin-bottom: 30px;

    padding: 18px 20px;

    background: #fff3cd;

    border: 1px solid #ffca2c;
    border-left: 5px solid #ff9800;

    border-radius: 8px;

    color: #664d03;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06);
}

.portal-form .ticket-priority-notice strong {
    font-size: 16px;
    font-weight: 700;
    color: #b45309;
}

.portal-form .ticket-priority-notice span {
    font-size: 14px;
    line-height: 1.6;
    color: #664d03;
}

/* =========================================================
   TEACHER SUBMIT TICKET
   Form Section Edge Spacing
   ========================================================= */

.portal-form .form-section {
    margin-left: 12px;
    margin-right: 12px;
    margin-bottom: 28px;
}

/* Keep the urgent notice aligned with the
   slightly inset form sections */

.portal-form .ticket-priority-notice {
    margin-left: 12px;
    margin-right: 12px;
    margin-top: 30px;
    margin-bottom: 30px;
}

