﻿/* ============================================================
   LOGIN PAGE — Professional Theme matching blue header/footer
   Font: DM Sans (body) + Outfit (headings)
   Palette: Matches #12549F header blue
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Outfit:wght@600;700&display=swap');

/* ── Root Variables ─────────────────────────────────────── */
:root {
    --header-blue: #12549F;
    --brand-dark: #0d3d78;
    --brand-mid: #1a6bbf;
    --accent: #f0a500;
    --white: #ffffff;
    --text-main: #1c2b3a;
    --text-muted: #6b7a8d;
    --border: #dde3ec;
    --input-bg: #f7f9fc;
    --danger: #e03e3e;
    --radius-card: 16px;
    --radius-input: 9px;
    --shadow-card: 0 8px 40px rgba(18,84,159,0.13);
    --transition: 0.2s ease;
}

/* ── Page Layout ────────────────────────────────────────── */
.page-content {
    flex: 1 1 auto;
    margin-top: 74px;
    margin-bottom: 38px;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 112px);
    font-family: 'DM Sans', sans-serif;
    background: #eef3fa;
}

/* ── Outer container ────────────────────────────────────── */
.container-fluid.d-flex {
    padding: 1.5rem !important;
    min-height: calc(100vh - 112px) !important;
    align-items: center !important;
}

/* ── Card Wrapper ───────────────────────────────────────── */
.row.shadow.rounded-3 {
    border-radius: var(--radius-card) !important;
    box-shadow: var(--shadow-card) !important;
    border: 1px solid rgba(18,84,159,0.1);
    overflow: hidden;
    margin: 0 !important;
}

/* ── Left Info Panel ────────────────────────────────────── */
.col-lg-6[style*="background-color: #5e5164"] {
    background: linear-gradient(160deg, var(--header-blue) 0%, var(--brand-dark) 100%) !important;
    padding: 3rem 2.8rem !important;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    text-align: left !important;
}

    /* Decorative circles */
    .col-lg-6[style*="background-color: #5e5164"]::before {
        content: '';
        position: absolute;
        top: -70px;
        right: -70px;
        width: 240px;
        height: 240px;
        border-radius: 50%;
        background: rgba(255,255,255,0.06);
        pointer-events: none;
    }

    .col-lg-6[style*="background-color: #5e5164"]::after {
        content: '';
        position: absolute;
        bottom: -50px;
        left: -50px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(240,165,0,0.1);
        pointer-events: none;
    }

    .col-lg-6[style*="background-color: #5e5164"] h3 {
        font-family: 'Outfit', sans-serif;
        font-size: 2rem;
        font-weight: 700;
        color: var(--white);
        line-height: 1.25;
        margin-bottom: 0.8rem;
        position: relative;
        z-index: 1;
        text-align: left !important;
    }

    .col-lg-6[style*="background-color: #5e5164"] p {
        font-size: 0.9rem;
        color: rgba(255,255,255,0.68);
        line-height: 1.7;
        position: relative;
        z-index: 1;
        margin: 0;
        text-align: left !important;
    }

    /* Accent underline on heading */
    .col-lg-6[style*="background-color: #5e5164"] h3::after {
        content: '';
        display: block;
        width: 48px;
        height: 3px;
        background: var(--accent);
        border-radius: 2px;
        margin-top: 0.6rem;
    }

/* ── Right Form Panel ───────────────────────────────────── */
.col-lg-6.bg-white.p-5 {
    padding: 3rem 3rem !important;
    background: var(--white) !important;
    position: relative;
    animation: fadeIn 0.4s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Close button */
.col-lg-6.bg-white.p-5 .btn.position-absolute {
    color: var(--text-muted);
    font-size: 1.4rem !important;
    line-height: 1;
    opacity: 0.6;
    transition: opacity var(--transition);
    top: 0.8rem !important;
    right: 0.8rem !important;
}

    .col-lg-6.bg-white.p-5 .btn.position-absolute:hover {
        opacity: 1;
    }

/* Form top label */
.form-label.fw-bold {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700 !important;
    color: var(--text-main);
    margin-bottom: 1.2rem;
    display: block;
}

/* ── Inputs ─────────────────────────────────────────────── */
.form-control {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--text-main);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-input) !important;
    padding: 0.65rem 0.9rem;
    background: var(--input-bg);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    height: auto;
}

    .form-control:focus {
        border-color: var(--header-blue);
        background: var(--white);
        box-shadow: 0 0 0 3px rgba(18,84,159,0.1);
        outline: none;
    }

    .form-control::placeholder {
        color: #adb8c9;
        font-weight: 300;
    }

/* ── Password input group ───────────────────────────────── */
.input-group .form-control {
    border-right: none !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

    .input-group .form-control:focus {
        border-right: none !important;
        box-shadow: none;
    }

.input-group:focus-within .form-control {
    border-color: var(--header-blue);
    background: var(--white);
}

.input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(18,84,159,0.1);
    border-radius: var(--radius-input);
}

.input-group .btn-outline-secondary {
    border: 1.5px solid var(--border);
    border-left: none !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: var(--radius-input) !important;
    border-bottom-right-radius: var(--radius-input) !important;
    background: var(--input-bg);
    color: var(--text-muted);
    padding: 0 0.9rem;
    transition: background var(--transition), color var(--transition);
}

    .input-group .btn-outline-secondary:hover {
        background: var(--brand-light);
        color: var(--header-blue);
        border-color: var(--border);
    }

.input-group:focus-within .btn-outline-secondary {
    border-color: var(--header-blue);
}

/* ── Forgot password link ───────────────────────────────── */
.text-end a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--header-blue);
    text-decoration: none !important;
    transition: color var(--transition);
}

    .text-end a:hover {
        color: var(--brand-dark);
        text-decoration: underline !important;
    }

/* ── Error Alert ────────────────────────────────────────── */
.alert.alert-danger {
    font-size: 0.83rem;
    border-radius: var(--radius-input);
    border: none;
    background: #fff0f0;
    color: var(--danger);
    padding: 0.6rem 1rem;
}

/* ── Submit Button ──────────────────────────────────────── */
#submitLoginForm {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.72rem;
    border-radius: var(--radius-input) !important;
    background: linear-gradient(135deg, var(--header-blue) 0%, var(--brand-dark) 100%) !important;
    border: none !important;
    color: var(--white) !important;
    transition: opacity var(--transition), transform 0.15s ease, box-shadow var(--transition);
    box-shadow: 0 4px 16px rgba(18,84,159,0.3);
    width: 100%;
}

    #submitLoginForm:hover:not(:disabled) {
        opacity: 0.91;
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(18,84,159,0.38);
    }

    #submitLoginForm:active {
        transform: translateY(0);
    }

    #submitLoginForm:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

/* ── Signup link ────────────────────────────────────────── */
form > a.d-block {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--header-blue);
    text-decoration: none !important;
    transition: color var(--transition);
}

    form > a.d-block:hover {
        color: var(--brand-dark);
        text-decoration: underline !important;
    }

/* ── Bootstrap Modal ────────────────────────────────────── */
.modal-content {
    border-radius: 14px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    font-family: 'DM Sans', sans-serif;
}

.modal-header {
    border-bottom: none;
    padding: 1.1rem 1.4rem 0.6rem;
    border-radius: 14px 14px 0 0;
}

    .modal-header.bg-warning {
        background: linear-gradient(90deg, #e09200, #c97d00) !important;
    }

        .modal-header.bg-warning .modal-title {
            font-weight: 600;
            color: var(--white) !important;
        }

.modal-body {
    font-size: 0.9rem;
    color: var(--text-main);
    padding: 1.2rem 1.4rem;
    line-height: 1.6;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 0.75rem 1.4rem;
}

    .modal-footer .btn-primary {
        font-family: 'DM Sans', sans-serif;
        font-size: 0.85rem;
        font-weight: 600;
        background: linear-gradient(135deg, var(--header-blue), var(--brand-dark));
        border: none;
        border-radius: 8px;
        padding: 0.5rem 1.6rem;
        transition: opacity var(--transition), transform 0.15s ease;
    }

        .modal-footer .btn-primary:hover {
            opacity: 0.88;
            transform: translateY(-1px);
        }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .col-lg-6[style*="background-color: #5e5164"] {
        padding: 2rem 1.8rem !important;
        min-height: auto;
        align-items: center !important;
        text-align: center !important;
    }

        .col-lg-6[style*="background-color: #5e5164"] h3,
        .col-lg-6[style*="background-color: #5e5164"] p {
            text-align: center !important;
        }

            .col-lg-6[style*="background-color: #5e5164"] h3::after {
                margin: 0.6rem auto 0;
            }

    .col-lg-6.bg-white.p-5 {
        padding: 2rem 1.5rem !important;
    }

    .row.shadow.rounded-3 {
        border-radius: 12px !important;
    }

    .container-fluid.d-flex {
        padding: 1rem !important;
    }
}
