/* ================================================================
   MNPC LOGIN PAGE - LARGE CLEAR TEXT
   Mabtaus Nursery and Primary College (MNPC)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ---- BASE ---- */
body,
body * {
    font-family: 'Outfit', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

body {
    background: linear-gradient(135deg, #1C0A00 0%, #3E1A05 50%, #5C2A00 100%) !important;
    color: #111111;
    font-size: 16px !important;
    line-height: 1.6 !important;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ---- LAYOUT ---- */
.auth-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.auth-main .container {
    max-width: 1040px;
    width: 100%;
}

.no-padding { padding: 0; }
.fitxt-center { text-align: center; }

/* ========================================================
   LEFT PANEL
   ======================================================== */
.image-area {
    background: linear-gradient(135deg, #5C2A00 0%, #2D1000 100%);
    min-height: 600px;
    height: 100%;
    border-radius: 16px 0 0 16px;
    position: relative;
    overflow: hidden;
}

.image-area:before {
    position: absolute;
    content: '';
    inset: 0;
    border-radius: 16px 0 0 16px;
    background: linear-gradient(135deg, rgba(92,42,0,0.93) 0%, rgba(20,6,0,0.97) 100%);
}

.image-area .content {
    position: relative;
    z-index: 2;
    min-height: 600px;
    padding: 50px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-area .image-hader {
    padding-bottom: 16px;
}

/* "WELCOME TO" heading */
.image-area .image-hader h2 {
    color: #F5A623 !important;
    text-transform: uppercase;
    font-weight: 800 !important;
    font-size: 1.85rem !important;
    letter-spacing: 0.06em;
    margin: 0;
    position: relative;
}

.image-area .image-hader h2:before {
    content: '';
    background: #F5A623;
    width: 80px;
    height: 3px;
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Address text */
.content .address p {
    color: #F0D5B0 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.6;
    padding-bottom: 12px;
    margin-top: 20px;
    text-align: center;
}

/* Social icons */
.f-social-links a span {
    font-size: 16px !important;
    color: #F5A623 !important;
    width: 42px;
    height: 42px;
    line-height: 40px;
    text-align: center;
    display: inline-block;
    margin: 0 4px;
    border: 1.5px solid rgba(245,166,35,0.5);
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    transition: all 0.2s ease;
}

.f-social-links a span:hover {
    color: #1C0A00 !important;
    background: #F5A623 !important;
    transform: translateY(-2px);
}

/* ========================================================
   RIGHT SIGN AREA
   ======================================================== */
.sign-area {
    background: #FFFFFF !important;
    position: relative;
    min-height: 600px;
    border-radius: 0 16px 16px 0;
    padding: 42px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 10px 0 40px rgba(0,0,0,0.25);
}

.sign-area::before {
    border-right: 38px solid #FFFFFF;
    border-top: 50px solid transparent;
    border-bottom: 50px solid transparent;
    content: '';
    height: 0;
    left: -37px;
    width: 0;
    position: absolute;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

/* School name + logo header */
.sign-area .sign-hader {
    text-align: center;
    padding-bottom: 20px;
}

.sign-area .sign-hader img {
    max-height: 64px;
    margin-bottom: 12px;
}

.sign-area .sign-hader h2 {
    color: #111111 !important;
    font-weight: 800 !important;
    font-size: 1.55rem !important;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.3;
}

/* ========================================================
   ROLE SWITCHER
   ======================================================== */
.role-switcher-container {
    margin-bottom: 18px;
}

.role-label {
    color: #5C2A00 !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: block;
    margin-bottom: 8px;
    text-align: left;
}

.role-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.role-tab {
    background: #F4F0E8;
    border: 1.5px solid #D4AA70;
    border-radius: 8px;
    padding: 12px 8px;
    color: #5C2A00 !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    outline: none !important;
    line-height: 1.3;
}

.role-emoji {
    font-size: 1.4rem !important;
    display: block;
    line-height: 1;
    margin-bottom: 2px;
}

.role-tab:hover {
    background: #FFF5E0;
    border-color: #F5A623;
    transform: translateY(-1px);
}

.role-tab.active {
    background: linear-gradient(135deg, #5C2A00 0%, #2D1000 100%) !important;
    color: #F5A623 !important;
    border-color: #F5A623 !important;
    box-shadow: 0 4px 14px rgba(92,42,0,0.35);
}

.role-tab.active i { color: #F5A623 !important; }

/* ========================================================
   FORM INPUTS
   ======================================================== */
.input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8B4513 !important;
    font-size: 1.1rem !important;
    z-index: 10;
    pointer-events: none;
}

.form-control,
input.form-control,
input[type="text"].form-control,
input[type="password"].form-control {
    width: 100% !important;
    height: 52px !important;
    border-radius: 10px !important;
    border: 2px solid #D4AA70 !important;
    background-color: #FFFDF8 !important;
    padding-left: 48px !important;
    padding-right: 16px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #111111 !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    font-family: 'Outfit', sans-serif !important;
    -webkit-border-radius: 10px !important;
}

.form-control:focus {
    border-color: #F5A623 !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 0 0 4px rgba(245,166,35,0.18) !important;
    color: #111111 !important;
}

.form-control::placeholder {
    color: #999999 !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
}

/* ========================================================
   REMEMBER & FORGOT
   ======================================================== */
.forgot-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 2px;
    margin-bottom: 4px;
}

.forgot-text a {
    color: #8B4513 !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    transition: color 0.2s ease;
}

.forgot-text a:hover { color: #F5A623 !important; text-decoration: underline; }

.checkbox-replace .i-checks {
    position: relative;
    padding-left: 26px;
    cursor: pointer;
    margin-bottom: 0;
    user-select: none;
    color: #222222 !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    display: inline-flex;
    align-items: center;
}

.checkbox-replace .i-checks input {
    position: absolute;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    pointer-events: none;
}

.checkbox-replace .i-checks > i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #D4AA70 !important;
    border-radius: 4px;
    background: #FFFDF8;
    transition: all 0.2s ease;
}

.checkbox-replace .i-checks input:checked + i {
    border-color: #F5A623 !important;
    background: #F5A623 !important;
}

.checkbox-replace .i-checks input:checked + i::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #1C0A00;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ========================================================
   LOGIN BUTTON
   ======================================================== */
.btn-round,
button.btn-round,
.btn.btn-block.btn-round {
    background: linear-gradient(135deg, #5C2A00 0%, #2D1000 100%) !important;
    border: none !important;
    margin-top: 16px;
    height: 52px !important;
    border-radius: 10px !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 18px rgba(92,42,0,0.35) !important;
    transition: all 0.2s ease !important;
    width: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    font-family: 'Outfit', sans-serif !important;
    -webkit-border-radius: 10px !important;
}

.btn-round:hover,
.btn-round:focus {
    background: linear-gradient(135deg, #F5A623 0%, #D98C15 100%) !important;
    color: #1C0A00 !important;
    box-shadow: 0 8px 24px rgba(245,166,35,0.45) !important;
    transform: translateY(-2px);
    outline: none !important;
}

.btn-round:active { transform: translateY(0) !important; }

/* ========================================================
   FOOTER TEXT
   ======================================================== */
.sign-footer p {
    color: #555555 !important;
    text-align: center;
    margin-top: 20px !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    line-height: 1.5;
}

/* ========================================================
   ERROR STATES
   ======================================================== */
.error { color: #C62828 !important; font-size: 0.84rem !important; font-weight: 600; display: block; margin-top: 3px; }
.has-error .form-control { border-color: #C62828 !important; }

/* ========================================================
   ALERT MESSAGES
   ======================================================== */
.alert-msg {
    color: #2E7D32 !important;
    padding: 10px 14px;
    margin-bottom: 14px;
    border: 1.5px solid #2E7D32;
    border-radius: 8px;
    background: #F1FBF2;
    text-align: center;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
}

.alert-msg.danger {
    color: #C62828 !important;
    border-color: #C62828;
    background: #FFF0F0;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 991px) {
    .image-area { min-height: auto; border-radius: 16px 16px 0 0; }
    .image-area:before { border-radius: 16px 16px 0 0; }
    .sign-area { min-height: auto; border-radius: 0 0 16px 16px; padding: 28px 24px; }
    .sign-area::before { display: none; }
    .role-tabs { grid-template-columns: repeat(2, 1fr); }
    .auth-main .container { max-width: 100%; }
    .sign-area .sign-hader h2 { font-size: 1.3rem !important; }
}
/* ================================================================
   MOBILE FIXES — Login Page
   ================================================================ */
@media (max-width: 767px) {

    /* Overall login box: comfortable padding */
    .auth-main {
        padding: 16px !important;
        min-height: 100vh;
    }

    /* Form inputs: larger touch targets */
    .auth-main input[type='text'],
    .auth-main input[type='email'],
    .auth-main input[type='password'] {
        font-size: 1rem !important;
        height: 48px !important;
        padding: 10px 14px !important;
        border-radius: 8px !important;
    }

    /* Labels: clearly readable */
    .auth-main label,
    .auth-main .control-label {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        margin-bottom: 6px !important;
    }

    /* Login / Submit button: big, full-width, gold themed */
    .auth-main .btn-primary,
    .auth-main input[type='submit'],
    .auth-main button[type='submit'] {
        width: 100% !important;
        height: 50px !important;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.05em !important;
        border-radius: 10px !important;
        background: linear-gradient(135deg, #B8730A 0%, #F5A623 100%) !important;
        border: none !important;
        color: #fff !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
        box-shadow: 0 4px 14px rgba(245,166,35,0.4) !important;
        margin-top: 8px !important;
    }

    /* Heading text */
    .auth-main h2,
    .auth-main h3 {
        font-size: 1.4rem !important;
        font-weight: 700 !important;
    }

    /* Role selector tabs / links: bigger tap targets */
    .auth-main .nav-tabs > li > a {
        font-size: 0.95rem !important;
        padding: 10px 14px !important;
    }

    /* Select dropdowns */
    .auth-main select {
        font-size: 1rem !important;
        height: 48px !important;
        padding: 10px 14px !important;
    }

    /* Links (forgot password etc) */
    .auth-main a {
        font-size: 0.9rem !important;
    }
}
