/* ================= GLOBAL RESET ================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f1f5f9;
    font-family: 'Inter', 'Cairo', sans-serif;
}

/* ================= HEADER ================= */

#header {
    height: 90px;
    width: 100%;
    background: #036d63;
    display: flex;
    align-items: center;
    padding: 0 30px;
    border-bottom: 4px solid #b78d03;
    color: white;
    justify-content: space-between;
}

/* Hide PWM default title & logo */
#header .header-title,
#header-title,
#header-company-logo,
#header img {
    display: none !important;
}



/* ===== LOGO ===== */
#header::before {
    content: "";
    width: 90px;
    height: 70px;
    background-image: url("/pwm/public/resources/128x128.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

/* ===== TEXT BLOCK ===== */
#header::after {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    color: white;
}

/* ================= ENGLISH ================= */
html[dir="ltr"] #header::after {
    content: "University Schools";
    text-align: left;
}

/* ================= ARABIC ================= */
html[dir="rtl"] #header::after {
    content: "مدارس الجامعة الأهلية";
    text-align: right;
}






/* ================= LOGIN CARD ================= */

#centerbody {
    background: #ffffff;
    width: 90%;
    max-width: 460px;
    margin: 60px auto;
    padding: 45px 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* Card Title */
#centerbody::before {
    content: "Sign In";
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 28px;
    text-align: center;
}

html[dir="rtl"] #centerbody::before {
    content: "تسجيل الدخول";
}

/* ================= INPUTS ================= */

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    margin-bottom: 18px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease-in-out;
}

input:focus {
    background: #ffffff;
    border-color: #036d63;
    box-shadow: 0 0 0 4px rgba(3,109,99,0.1);
    outline: none;
}

/* ================= LOGIN BUTTON ================= */

input[type="submit"],
button[type="submit"] {
    width: 100%;
    height: 52px;
    margin-top: 10px;
    border-radius: 10px;
    background: #036d63 !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(3,109,99,0.25);
    transition: all 0.2s ease;
}

input[type="submit"]:hover {
    background: #025951 !important;
    transform: translateY(-1px);
}

/* ================= LOGIN PAGE ONLY - FORGOTTEN SECTION ================= */
/* Scoped safely so admin pages are not affected */

#centerbody form + table {
    width: 100% !important;
    margin-top: 30px !important;
    border-top: 1px solid #e2e8f0;
    padding-top: 22px;
}

#centerbody form + table tr {
    display: block;
    margin-bottom: 20px;
}

#centerbody form + table td {
    display: block;
    text-align: left;
}

#centerbody form + table a[href*="forgot"] {
    font-size: 14px;
    font-weight: 600;
    color: #036d63 !important;
    text-decoration: none;
}

#centerbody form + table a[href*="forgot"]:hover {
    text-decoration: underline;
}

#centerbody form + table td + td {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* RTL Support */
html[dir="rtl"] #centerbody form + table td {
    text-align: right;
}

/* ================= FOOTER ================= */

#footer, footer {
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    padding: 15px;
    font-size: 12px;
    border-top: 1px solid #e2e8f0;
    width: 100%;
}