@font-face {
    font-family: "Outfit";
    src: url("../fonts/Outfits/Outfit-Medium.eot");
    src: url("../fonts/Outfits/Outfit-Medium.eot?#iefix") format("embedded-opentype"),
        url("../fonts/Outfits/Outfit-Medium.woff2") format("woff2"),
        url("../fonts/Outfits/Outfit-Medium.woff") format("woff"),
        url("../fonts/Outfits/Outfit-Medium.ttf") format("truetype"),
        url("../fonts/Outfits/Outfit-Medium.svg#Outfit-Medium") format("svg");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Outfit";
    src: url("../fonts/Outfits/Outfit-ExtraBold.eot");
    src: url("../fonts/Outfits/Outfit-ExtraBold.eot?#iefix") format("embedded-opentype"),
        url("../fonts/Outfits/Outfit-ExtraBold.woff2") format("woff2"),
        url("../fonts/Outfits/Outfit-ExtraBold.woff") format("woff"),
        url("../fonts/Outfits/Outfit-ExtraBold.ttf") format("truetype"),
        url("../fonts/Outfits/Outfit-ExtraBold.svg#Outfit-ExtraBold") format("svg");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Outfit";
    src: url("../fonts/Outfits/Outfit-Black.eot");
    src: url("../fonts/Outfits/Outfit-Black.eot?#iefix") format("embedded-opentype"),
        url("../fonts/Outfits/Outfit-Black.woff2") format("woff2"),
        url("../fonts/Outfits/Outfit-Black.woff") format("woff"),
        url("../fonts/Outfits/Outfit-Black.ttf") format("truetype"),
        url("../fonts/Outfits/Outfit-Black.svg#Outfit-Black") format("svg");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Outfit";
    src: url("../fonts/Outfits/Outfit-Light.eot");
    src: url("../fonts/Outfits/Outfit-Light.eot?#iefix") format("embedded-opentype"),
        url("../fonts/Outfits/Outfit-Light.woff2") format("woff2"),
        url("../fonts/Outfits/Outfit-Light.woff") format("woff"),
        url("../fonts/Outfits/Outfit-Light.ttf") format("truetype"),
        url("../fonts/Outfits/Outfit-Light.svg#Outfit-Light") format("svg");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Outfit";
    src: url("../fonts/Outfits/Outfit-Bold.eot");
    src: url("../fonts/Outfits/Outfit-Bold.eot?#iefix") format("embedded-opentype"),
        url("../fonts/Outfits/Outfit-Bold.woff2") format("woff2"),
        url("../fonts/Outfits/Outfit-Bold.woff") format("woff"),
        url("../fonts/Outfits/Outfit-Bold.ttf") format("truetype"),
        url("../fonts/Outfits/Outfit-Bold.svg#Outfit-Bold") format("svg");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Outfit";
    src: url("../fonts/Outfits/Outfit-ExtraLight.eot");
    src: url("../fonts/Outfits/Outfit-ExtraLight.eot?#iefix") format("embedded-opentype"),
        url("../fonts/Outfits/Outfit-ExtraLight.woff2") format("woff2"),
        url("../fonts/Outfits/Outfit-ExtraLight.woff") format("woff"),
        url("../fonts/Outfits/Outfit-ExtraLight.ttf") format("truetype"),
        url("../fonts/Outfits/Outfit-ExtraLight.svg#Outfit-ExtraLight") format("svg");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Outfit";
    src: url("../fonts/Outfits/Outfit-Regular.eot");
    src: url("../fonts/Outfits/Outfit-Regular.eot?#iefix") format("embedded-opentype"),
        url("../fonts/Outfits/Outfit-Regular.woff2") format("woff2"),
        url("../fonts/Outfits/Outfit-Regular.woff") format("woff"),
        url("../fonts/Outfits/Outfit-Regular.ttf") format("truetype"),
        url("../fonts/Outfits/Outfit-Regular.svg#Outfit-Regular") format("svg");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Outfit";
    src: url("../fonts/Outfits/Outfit-SemiBold.eot");
    src: url("../fonts/Outfits/Outfit-SemiBold.eot?#iefix") format("embedded-opentype"),
        url("../fonts/Outfits/Outfit-SemiBold.woff2") format("woff2"),
        url("../fonts/Outfits/Outfit-SemiBold.woff") format("woff"),
        url("../fonts/Outfits/Outfit-SemiBold.ttf") format("truetype"),
        url("../fonts/Outfits/Outfit-SemiBold.svg#Outfit-SemiBold") format("svg");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Outfit";
    src: url("../fonts/Outfits/Outfit-Thin.eot");
    src: url("../fonts/Outfits/Outfit-Thin.eot?#iefix") format("embedded-opentype"),
        url("../fonts/Outfits/Outfit-Thin.woff2") format("woff2"),
        url("../fonts/Outfits/Outfit-Thin.woff") format("woff"),
        url("../fonts/Outfits/Outfit-Thin.ttf") format("truetype"),
        url("../fonts/Outfits/Outfit-Thin.svg#Outfit-Thin") format("svg");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}



:root {
    --primary-color: #2347af;
    /* Modern Indigo */
    --primary-hover: #2347af;
    --text-main: #111827;
    --text-muted: #6b7280;
    --bg-input: #f9fafb;
    --border-color: #e5e7eb;
    --focus-ring: rgba(79, 70, 229, 0.2);
    --card-bg: #ffffff;
}

body {
    background-color: #f3f4f6;
    font-family: "Outfit", sans-serif;
    margin: 0;

    min-height: 100vh;
    /* allows scrolling when needed */
    display: flex;
    align-items: center;
    justify-content: center;

    overflow-x: hidden;
    /* keep horizontal clean */
    overflow-y: auto;
    /* allow vertical scroll */

    background-color: #f4f7f9;

    background-image:
        /* The "Cool" Anchor - Bottom Left (Soft Blue-Purple) */
        radial-gradient(circle at 10% 90%,
            hsla(220, 80%, 90%, 1) 0%,
            transparent 60%),
        /* The "Attractive" Spark - Top Right (Pastel Orange/Pink) */
        radial-gradient(circle at 90% 10%,
            hsla(25, 90%, 92%, 1) 0%,
            transparent 55%),
        /* The "Smooth" Blender - Center (Light Cyan) */
        radial-gradient(circle at 50% 50%,
            hsla(190, 70%, 95%, 1) 0%,
            transparent 50%),
        /* The "Depth" - Top Left (Faint Periwinkle) */
        radial-gradient(circle at 10% 10%,
            hsla(230, 60%, 94%, 1) 0%,
            transparent 50%);

    /* This ensures the background covers the whole screen nicely */
    background-attachment: fixed;
    background-size: 100% 100%;
}

/* --- Layout & Background --- */
.login-page-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Abstract shapes for background Outfitest */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.shape-1 {
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: #c7d2fe;
    /* Light indigo */
}

.shape-2 {
    bottom: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: #ddd6fe;
    /* Light purple */
}

/* --- Card Design --- */
.login-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border-radius: 20px;
    /* Softer corners */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* Deep, soft shadow */
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

/* --- Header --- */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-container {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e0e7ff 0%, #ebf4ff 100%);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* --- Alerts --- */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 500;
    color: #20292f;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    font-size: 14px;
    z-index: 2;
    transition: color 0.2s;
}

/* Find this class in your CSS and replace it with this: */
.form-control {
    border: 1px solid #e8eae9;
    border-radius: 5px;
    height: 55px;
    line-height: 55px;
    padding: 0px;
    padding-left: 40px;
    font-size: 16px;
    color: #20292f;
    box-shadow: none;
    z-index: 2;
    position: relative;
    transition: all 0.3s;
    background: transparent;
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #20292f !important;
    border: 1px solid #e8eae9 !important;
    border-radius: 5px;
    height: 55px;
    line-height: 55px;
    padding-left: 40px;
    font-size: 16px;
    transition: background-color 5000s ease-in-out 0s;
}


/* Optional: Ensure the focus state remains clear */
.form-control:focus {
    background-color: #ffffff00;
    border: 1px solid #e8eae9;
    outline: none;
    box-shadow: 0 10px 10px rgba(0, 123, 255, 0.09);
}

.form-control:focus+.input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--primary-color);
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    background-image: none;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: poOutfit;
    font-size: 14px;
    padding: 4px;
}

.password-toggle:hover {
    color: var(--text-main);
}

/* --- Captcha Section --- */
.captcha-section {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.section-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.captcha-row {
    display: flex;
    gap: 12px;
}

.captcha-display {
    position: relative;
    flex-shrink: 0;
}

.captcha-display img {
    height: 46px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.captcha-reload {
    position: absolute;
    right: -10px;
    top: -10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #64748b;
    cursor: poOutfit;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.captcha-reload:hover {
    color: var(--primary-color);
    transform: rotate(180deg);
}

.captcha-input-box {
    flex-grow: 1;
}

.captcha-input-box input {
    padding: 12px;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Submit Button --- */
.submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: poOutfit;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Animation */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 25px;
    }

    .captcha-row {
        flex-direction: column;
    }

    .captcha-display {
        display: flex;
        justify-content: center;
        margin-bottom: 5px;
    }
}

/* -------------------------------------------------
   EXTRA RESPONSIVE FIXES (NO DESIGN CHANGES)
---------------------------------------------------*/

/* Tablets */
@media (max-width: 768px) {
    body {
        /* padding: 20px; */
        overflow-y: auto;
    }

    .login-card {
        /* max-width: 90%; */
        padding: 30px;
    }

    .login-header img {
        width: 65%;
    }

    .shape {
        filter: blur(60px);
        opacity: 0.5;
    }

    .login-page-wrapper {
        padding: 10px;
    }
}

/* Mobile (Large) */
@media (max-width: 600px) {
    /* .login-card {
        padding: 25px;
        max-width: 95%;
    } */

    .login-header img {
        width: 70%;
    }

    .captcha-row {
        flex-direction: column;
    }

    .captcha-display img {
        width: 100%;
        height: auto;
    }

    .captcha-input-box input {
        letter-spacing: 1px;
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 420px) {
    .login-card {
        padding: 20px;
    }

    .login-header img {
        width: 80%;
    }

    .shape-1,
    .shape-2 {
        width: 200px;
        height: 200px;
        filter: blur(50px);
    }

    .form-control {
        padding: 11px 12px 11px 38px;
        font-size: 13px;
    }

    .submit-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* password rule checklist */
#passwordRules {
    margin-top: 8px;
}

.rule-item {
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #444;
}

.rule-icon {
    width: 16px;
    text-align: center;
}

/* valid / invalid input borders (optional) */
/* input.form-control.error {
    border-color: #dc3545 !important;
    box-shadow: none;
} */

/* input.form-control.valid {
    border-color: #28a745 !important;
    box-shadow: none;
} */

button.password-toggle {
    background: none;
    border: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 111;
}

.input-wrapper {
    position: relative;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-top: 4px;
}

.rule-icon {
    width: 16px;
}

/* RULE LIST STYLE */
#passwordRules {
    background: #f8f9fc;
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #2563eb;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 4px 0;
    transition: all 0.25s ease-in-out;
}

/* default text */
.rule-item span {
    transition: color 0.25s;
}

/* VALID RULE */
.rule-valid {
    color: #198754 !important;
    font-weight: 600;
    transform: translateX(4px);
}

/* INVALID RULE */
.rule-invalid {
    color: #dc3545 !important;
    opacity: 0.7;
}

/* ICON STYLE */
.rule-icon {
    width: 18px;
    transition: all 0.25s ease-in-out;
}

.min-vh-70 {
    min-height: 70vh;
}

.error-card {
    max-width: 520px;
    width: 100%;
}

.error-icon {
    font-size: 60px;
}
