@font-face {
    font-family: "NEOSANSARABIC";
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: url("https://eservices.ammanu.edu.jo/Careers/Academic/assets/fonts/NEOSANSARABIC-Medium.ttf") format("truetype")
}

:root {
    --primary: #244B91;
    --primary-dark: #17376C;
    --deep: #102951;
    --gold: #D5A329;
    --gold-dark: #BA8613;
    --light-blue: #EDF4FF;
    --page: #F5F7FB;
    --text: #1E293B;
    --muted: #64748B;
    --border: #E3E9F1;
    --white: #FFFFFF;
    --danger: #B42318
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    min-height: 100%
}

body, button, input, a, span, p, h1, h2, h3, h4, label, small, strong {
    font-family: NEOSANSARABIC,Tahoma,Arial,sans-serif
}

body {
    min-height: 100vh;
    background: var(--page);
    color: var(--text)
}

button, input {
    font: inherit
}

a {
    text-decoration: none
}

.page-wrapper {
    position: relative;
    min-height: calc(100vh - 46px);
    display: grid;
    grid-template-columns: minmax(420px, .95fr) minmax(520px, 1.05fr);
    padding-bottom: 0;
    overflow: hidden;
}

.welcome-section {
    position: relative;
    min-height: calc(100vh - 46px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 64px clamp(38px,5vw,82px);
    color: #fff;
    background: radial-gradient(circle at 12% 15%,rgba(255,255,255,.10),transparent 24%),linear-gradient(135deg,var(--deep) 0%,var(--primary-dark) 48%,var(--primary) 100%)
}

    .welcome-section:before, .welcome-section:after {
        content: "";
        position: absolute;
        border: 1px solid rgba(255,255,255,.11);
        border-radius: 50%
    }

    .welcome-section:before {
        width: 360px;
        height: 360px;
        left: -160px;
        bottom: -120px
    }

    .welcome-section:after {
        width: 210px;
        height: 210px;
        right: -100px;
        top: 70px
    }

.welcome-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 640px;
    margin-inline: auto
}

.university-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 64px
}

.logo-placeholder {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    overflow: hidden;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 18px
}

.aau-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

.university-brand h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 21px;
    font-weight: normal
}

.university-brand p {
    margin: 0;
    color: rgba(255,255,255,.70);
    font-size: 13px
}

.welcome-text {
    margin-bottom: 42px
}

.small-title, .form-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .06em
}

.small-title {
    color: #FFE8A3;
    background: rgba(213,163,41,.12);
    border: 1px solid rgba(213,163,41,.28)
}

.welcome-text h1 {
    max-width: 520px;
    margin: 17px 0 15px;
    color: #fff;
    font-size: clamp(37px,4vw,54px);
    font-weight: normal;
    line-height: 1.12
}

    .welcome-text h1 strong {
        color: #FFD86B;
        font-weight: normal
    }

.welcome-text > p {
    max-width: 550px;
    margin: 0;
    color: rgba(255,255,255,.75);
    font-size: 14px;
    line-height: 1.9
}

.features {
    display: grid;
    gap: 14px
}

.feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 15px
}

.feature-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD86B;
    background: rgba(255,255,255,.08);
    border-radius: 12px;
    font-size: 16px
}

.feature h4 {
    margin: 0 0 3px;
    color: #fff;
    font-size: 13px;
    font-weight: normal
}

.feature p {
    margin: 0;
    color: rgba(255,255,255,.66);
    font-size: 11px;
    line-height: 1.65
}

.login-section {
    min-height: calc(100vh - 46px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 38px clamp(24px,5vw,70px);
    background: radial-gradient(circle at 100% 0%,rgba(36,75,145,.08),transparent 30%),var(--page)
}

.login-container {
    width: 100%;
    max-width: 560px
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 22px
}

.mobile-brand {
    display: none
}

.language-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    color: var(--primary-dark);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer
}

.form-header {
    margin-bottom: 24px
}

.form-badge {
    color: var(--primary-dark);
    background: var(--light-blue);
    border: 1px solid #D8E4F7;
    letter-spacing: .04em
}

.form-header h2 {
    margin: 16px 0 8px;
    color: var(--deep);
    font-size: 29px;
    font-weight: normal
}

.form-header p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8
}

.alert {
    display: none;
    margin-bottom: 16px;
    padding: 11px 13px;
    color: var(--danger);
    background: #FFF5F4;
    border: 1px solid #F7D2CE;
    border-radius: 10px;
    font-size: 12px
}

    .alert.show, .alert:not(:empty) {
        display: block
    }

#loginForm {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(15,23,42,.07)
}

.form-group {
    margin-bottom: 18px
}

    .form-group label, .password-label label {
        display: flex;
        align-items: center;
        gap: 4px;
        margin: 0 0 8px;
        color: #475569;
        font-size: 12px
    }

        .form-group label b, .password-label label b {
            color: #DC2626;
            font-weight: normal
        }

.password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px
}

.forgot-password {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 11px
}

.input-wrapper {
    position: relative
}

    .input-wrapper > i {
        position: absolute;
        top: 50%;
        left: 14px;
        transform: translateY(-50%);
        color: #94A3B8;
        font-size: 14px;
        pointer-events: none
    }

html[dir="rtl"] .input-wrapper > i {
    left: auto;
    right: 14px
}

.input-wrapper input {
    width: 100%;
    height: 48px;
    padding: 0 42px 0 14px;
    color: #334155;
    background: #fff;
    border: 1px solid #D7E0EA;
    border-radius: 10px;
    outline: none;
    font-size: 13px
}

    .input-wrapper input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(36,75,145,.07)
    }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer
}

html[dir="rtl"] .password-toggle {
    right: auto;
    left: 10px
}

.error-message {
    display: block;
    min-height: 16px;
    margin-top: 5px;
    color: var(--danger);
    font-size: 11px
}

.login-help {
    display: grid;
    gap: 7px;
    margin: -3px 0 18px;
    padding: 12px 13px;
    color: #64748B;
    background: #F8FAFC;
    border: 1px solid #E6ECF3;
    border-radius: 11px;
    font-size: 11px
}

    .login-help > div {
        display: flex;
        align-items: center;
        gap: 8px
    }

    .login-help i {
        width: 17px;
        color: var(--gold-dark);
        text-align: center
    }

.remember-row {
    margin: -1px 0 18px
}

.checkbox-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748B;
    font-size: 11px;
    cursor: pointer
}

    .checkbox-container input {
        position: absolute;
        opacity: 0
    }

.custom-checkbox {
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #C9D3E0;
    border-radius: 5px;
    background: #fff
}

.checkbox-container input:checked + .custom-checkbox {
    background: var(--primary);
    border-color: var(--primary)
}

    .checkbox-container input:checked + .custom-checkbox:after {
        content: "✓";
        color: #fff;
        font-size: 11px
    }

.login-btn, .register-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: .2s
}

.login-btn {
    color: #fff;
    background: linear-gradient(135deg,var(--primary),var(--primary-dark));
    border: 0;
    box-shadow: 0 7px 16px rgba(36,75,145,.17)
}

.register-btn {
    color: var(--primary-dark);
    background: #fff;
    border: 1px solid #CBD8E8
}

.separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #94A3B8;
    font-size: 11px
}

    .separator:before, .separator:after {
        content: "";
        flex: 1;
        height: 1px;
        background: #E6EAF0
    }

.demo-account {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 13px 14px;
    color: #475569;
    background: #FFF9E8;
    border: 1px solid #F0DBA7;
    border-radius: 11px
}

.demo-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    background: rgba(213,163,41,.12);
    border-radius: 9px
}

.demo-account strong {
    display: block;
    margin-bottom: 3px;
    color: #7C5A0B;
    font-size: 11px;
    font-weight: normal
}

.demo-account p {
    margin: 1px 0;
    color: #786330;
    font-size: 10px;
    direction: ltr;
    text-align: left
}

.support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
    color: #94A3B8;
    font-size: 10px
}

.site-footer {
    position: static;
    width: 100%;
    min-height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 7px 22px;
    color: rgba(255,255,255,.78);
    background: linear-gradient( 135deg, var(--deep), var(--primary-dark));
    border-top: 3px solid var(--gold);
    font-size: 10px;
    z-index: 5;
}

    .site-footer a {
        color: rgba(255,255,255,.78)
    }

        .site-footer a:hover {
            color: #fff
        }

html[dir="rtl"] body {
    direction: rtl
}

html[dir="rtl"] .university-brand, html[dir="rtl"] .feature, html[dir="rtl"] .login-help > div, html[dir="rtl"] .demo-account {
    text-align: right
}

html[dir="rtl"] .form-header, html[dir="rtl"] .welcome-text {
    text-align: right
}

@media (max-width: 980px) {
    .page-wrapper {
        display: block;
        min-height: calc(100vh - 58px);
        padding-bottom: 0;
    }

    .welcome-section {
        display: none;
    }

    .login-section {
        min-height: calc(100vh - 58px);
        padding: 24px 16px 34px;
    }

    .login-container {
        max-width: 540px;
    }

    .top-bar {
        justify-content: space-between;
        margin-bottom: 22px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .site-footer {
        position: static;
        min-height: 58px;
        flex: 0 0 auto;
        flex-wrap: wrap;
        text-align: center;
    }
}
@media(max-width:560px) {
    .login-section {
        align-items: flex-start
    }

    .top-bar {
        align-items: flex-start
    }

    .mobile-brand h3 {
        max-width: 180px;
        line-height: 1.4
    }

    .language-btn {
        padding: 0 11px
    }

    .form-header h2 {
        font-size: 24px
    }

    #loginForm {
        padding: 20px 16px;
        border-radius: 17px
    }

    .demo-account {
        align-items: center
    }
}
/* =========================================================
   DESIGN FIXES - LOGIN PAGE
========================================================= */

/* ---------------------------------------------------------
   INPUT WRAPPER
--------------------------------------------------------- */

.input-wrapper {
    position: relative;
}


    /* Icon */

    .input-wrapper > i {
        position: absolute;
        top: 50%;
        left: 16px;
        transform: translateY(-50%);
        width: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #94A3B8;
        font-size: 14px;
        pointer-events: none;
        z-index: 2;
    }


/* ---------------------------------------------------------
   ENGLISH INPUT
--------------------------------------------------------- */

html[dir="ltr"] .input-wrapper input {
    width: 100%;
    height: 49px;
    /* Top Right Bottom Left */
    padding: 0 16px 0 48px;
    color: #334155;
    background: #FFFFFF;
    border: 1px solid #D7E0EA;
    border-radius: 11px;
    outline: none;
    font-size: 13px;
    line-height: 49px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}


    /* Password has eye button on right */

    html[dir="ltr"] .input-wrapper input[type="password"],
    html[dir="ltr"] .input-wrapper input[type="text"]#password {
        padding-left: 48px;
        padding-right: 52px;
    }


/* ---------------------------------------------------------
   ARABIC
--------------------------------------------------------- */

html[dir="rtl"] .input-wrapper > i {
    left: auto;
    right: 16px;
}


html[dir="rtl"] .input-wrapper input {
    width: 100%;
    height: 49px;
    padding: 0 48px 0 16px;
    text-align: right;
    color: #334155;
    background: #FFFFFF;
    border: 1px solid #D7E0EA;
    border-radius: 11px;
    outline: none;
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}


    /* Password:
   lock icon right
   eye button left
*/

    html[dir="rtl"] .input-wrapper input[type="password"],
    html[dir="rtl"] .input-wrapper input[type="text"]#password {
        padding-right: 48px;
        padding-left: 52px;
    }


/* ---------------------------------------------------------
   LOGIN IDENTIFIER
--------------------------------------------------------- */

/*
   Keep phone/email/numbers readable.
   Example:
   +962782910445
   user@email.com
*/

#loginIdentifier {
    unicode-bidi: plaintext;
}


/* English */

html[dir="ltr"] #loginIdentifier {
    direction: ltr;
    text-align: left;
}


/* Arabic:
   Keep Arabic placeholder visually correct.
*/

html[dir="rtl"] #loginIdentifier {
    text-align: right;
}


/* ---------------------------------------------------------
   PLACEHOLDERS
--------------------------------------------------------- */

.input-wrapper input::placeholder {
    color: #9AA8BA;
    opacity: 1;
    font-weight: normal;
}


/* ---------------------------------------------------------
   FOCUS
--------------------------------------------------------- */

.input-wrapper input:hover {
    border-color: #C6D4E5;
}


.input-wrapper input:focus {
    border-color: #244B91;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(36,75,145,.08);
}


/* ---------------------------------------------------------
   PASSWORD EYE
--------------------------------------------------------- */

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #64748B;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 3;
    transition: color .2s ease, background .2s ease;
}


    .password-toggle:hover {
        color: #244B91;
        background: #F2F6FC;
    }


html[dir="rtl"] .password-toggle {
    right: auto;
    left: 9px;
}


/* ---------------------------------------------------------
   LOGIN FORM
--------------------------------------------------------- */

#loginForm {
    padding: 28px 27px;
    background: #FFFFFF;
    border: 1px solid #DFE7F0;
    border-radius: 20px;
    box-shadow: 0 14px 38px rgba(15,23,42,.07);
}


/* ---------------------------------------------------------
   FORM GROUP
--------------------------------------------------------- */

.form-group {
    margin-bottom: 20px;
}


    .form-group label,
    .password-label label {
        margin-bottom: 9px;
        color: #334155;
        font-size: 12px;
        line-height: 1.5;
    }


/* ---------------------------------------------------------
   LOGIN HELP
--------------------------------------------------------- */

.login-help {
    display: grid;
    gap: 8px;
    margin: -1px 0 20px;
    padding: 13px 15px;
    background: #F8FAFD;
    border: 1px solid #E3EAF3;
    border-radius: 11px;
    color: #64748B;
    font-size: 11px;
    line-height: 1.6;
}


    .login-help > div {
        display: flex;
        align-items: center;
        gap: 9px;
    }


    .login-help i {
        width: 18px;
        flex: 0 0 18px;
        color: #C3931D;
        text-align: center;
    }


/* ---------------------------------------------------------
   PASSWORD LABEL
--------------------------------------------------------- */

.password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}


.forgot-password {
    margin-bottom: 9px;
    color: #244B91;
    font-size: 11px;
    font-weight: normal;
}


/* ---------------------------------------------------------
   REMEMBER ME
--------------------------------------------------------- */

.remember-row {
    margin: 3px 0 20px;
}


/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

.login-btn,
.register-btn {
    min-height: 49px;
    border-radius: 10px;
}


.login-btn {
    box-shadow: 0 8px 18px rgba(36,75,145,.18);
}


    .login-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(36,75,145,.22);
    }


.register-btn:hover {
    background: #F8FAFD;
    border-color: #B9CCE3;
}


/* ---------------------------------------------------------
   ALERT
--------------------------------------------------------- */

.alert {
    line-height: 1.6;
}


    .alert.success {
        color: #12633F;
        background: #F0FBF6;
        border-color: #BDE6D1;
    }


    .alert.info {
        color: #244B91;
        background: #F2F7FD;
        border-color: #D3E1F1;
    }


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 560px) {

    #loginForm {
        padding: 21px 17px;
    }


    .input-wrapper input {
        font-size: 12px;
    }
}
