/* ==========================================================================
   MOKOKO & NAVIGO WEB FONTS DEFINITION
   ========================================================================== */

/* Mokoko Regular (Weight 400) */
@font-face {
    font-family: 'Mokoko';
    src: url('./../css/MokokoWebStatic/Mokoko_W_Rg.woff2') format('woff2'),
        url('./../css/MokokoWebStatic/Mokoko_W_Rg.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ExtraLight (Weight 200) */
@font-face {
    font-family: 'Navigo';
    src: url('./../css/NavigoWebFont/Navigo-ExtraLight-Web.eot');
    src: url('./../css/NavigoWebFont/Navigo-ExtraLight-Web.eot#iefix') format('embedded-opentype'),
        url('./../css/NavigoWebFont/Navigo-ExtraLight-Web.ttf') format('truetype'),
        url('./../css/NavigoWebFont/Navigo-ExtraLight-Web.svg#Navigo ExtraLight') format('svg');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

/* ExtraLight Italic */
@font-face {
    font-family: 'Navigo';
    src: url('./../css/NavigoWebFont/Navigo-ExtraLight Italic-Web.eot');
    src: url('./../css/NavigoWebFont/Navigo-ExtraLight Italic-Web.eot#iefix') format('embedded-opentype'),
        url('./../css/NavigoWebFont/Navigo-ExtraLight Italic-Web.woff2') format('woff2'),
        url('./../css/NavigoWebFont/Navigo-ExtraLight Italic-Web.woff') format('woff'),
        url('./../css/NavigoWebFont/Navigo-ExtraLight Italic-Web.ttf') format('truetype'),
        url('./../css/NavigoWebFont/Navigo-ExtraLight Italic-Web.svg#Navigo ExtraLight Italic') format('svg');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

/* Bold (Weight 700) */
@font-face {
    font-family: 'Navigo';
    src: url('./../css/NavigoWebFont/Navigo-Bold-Web.eot');
    src: url('./../css/NavigoWebFont/Navigo-Bold-Web.eot#iefix') format('embedded-opentype'),
        url('./../css/NavigoWebFont/Navigo-Bold-Web.woff2') format('woff2'),
        url('./../css/NavigoWebFont/Navigo-Bold-Web.woff') format('woff'),
        url('./../css/NavigoWebFont/Navigo-Bold-Web.ttf') format('truetype'),
        url('./../css/NavigoWebFont/Navigo-Bold-Web.svg#Navigo Bold') format('svg');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Bold Italic */
@font-face {
    font-family: 'Navigo';
    src: url('./../css/NavigoWebFont/Navigo-Bold Italic-Web.eot');
    src: url('./../css/NavigoWebFont/Navigo-Bold Italic-Web.eot#iefix') format('embedded-opentype'),
        url('./../css/NavigoWebFont/Navigo-Bold Italic-Web.woff2') format('woff2'),
        url('./../css/NavigoWebFont/Navigo-Bold Italic-Web.woff') format('woff'),
        url('./../css/NavigoWebFont/Navigo-Bold Italic-Web.ttf') format('truetype'),
        url('./../css/NavigoWebFont/Navigo-Bold Italic-Web.svg#Navigo Bold Italic') format('svg');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Black (Weight 900) */
@font-face {
    font-family: 'Navigo';
    src: url('./../css/NavigoWebFont/Navigo-Black-Web.eot');
    src: url('./../css/NavigoWebFont/Navigo-Black-Web.eot#iefix') format('embedded-opentype'),
        url('./../css/NavigoWebFont/Navigo-Black-Web.woff2') format('woff2'),
        url('./../css/NavigoWebFont/Navigo-Black-Web.woff') format('woff'),
        url('./../css/NavigoWebFont/Navigo-Black-Web.ttf') format('truetype'),
        url('./../css/NavigoWebFont/Navigo-Black-Web.svg#Navigo Black') format('svg');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Black Italic */
@font-face {
    font-family: 'Navigo';
    src: url('./../css/NavigoWebFont/Navigo-Black Italic-Web.eot');
    src: url('./../css/NavigoWebFont/Navigo-Black Italic-Web.eot#iefix') format('embedded-opentype'),
        url('./../css/NavigoWebFont/Navigo-Black Italic-Web.woff2') format('woff2'),
        url('./../css/NavigoWebFont/Navigo-Black Italic-Web.woff') format('woff'),
        url('./../css/NavigoWebFont/Navigo-Black Italic-Web.ttf') format('truetype'),
        url('./../css/NavigoWebFont/Navigo-Black Italic-Web.svg#Navigo Black Italic') format('svg');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* ==========================================================================
   CSS CUSTOM VARIABLES & RESET
   ========================================================================== */

:root {
    --color-mahogany: #551C25;
    --color-terracotta: #C35130;
    --color-terracotta-hover: #A9472B;
    --color-border: #551C25;
    --color-border-focus: #551C25;
    --color-text: #1D252D;
    --color-text-muted: #5b6168;
    --color-bg-white: #ffffff;
    --color-link: #1D252D;
    --color-shadow: rgba(77, 32, 38, 0.12);
    --color-focus-ring: rgba(178, 89, 57, 0.1);
    --color-button-shadow: rgba(178, 89, 57, 0.25);
    --font-sans: 'Navigo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-bezier: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-white);
    font-family: var(--font-sans);
    color: var(--color-text);
    font-weight: 200;
    /* Default to ExtraLight Navigo */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ==========================================================================
   LAYOUT SYSTEM & CONTAINER
   ========================================================================== */

.page-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    box-sizing: border-box;
    padding: 40px 20px;
}

/* Background image handling */
.bg-image {
    background-image: url('./../../../images/login_screen/Navari_background_compressed.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

/* ==========================================================================
   LOGIN BOX COMPONENT
   ========================================================================== */

.login-box {
    width: 100%;
    max-width: 580px;
    background-color: var(--color-bg-white);
    border-radius: 0;
    box-shadow: 0 20px 50px var(--color-shadow);
    display: flex;
    flex-direction: column;
    height: max-content;
    border-left: 1px solid var(--color-mahogany);
    border-right: 1px solid var(--color-mahogany);
    border-bottom: 16px solid var(--color-mahogany);
    z-index: 2;
    transition: max-width 0.3s ease;
}

/* Upper part: Dark brown header */
.login-header {
    position: relative;
    height: auto;
    background-color: var(--color-mahogany);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 50px 20px 25px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    overflow: hidden;
}

/* Decorative shapes: 870px artboard centered in ~581px header (66% visible), clipped */
.header-shapes-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}

.header-shapes-image {
    width: 981px;
    max-width: none;
    height: auto;
    flex-shrink: 0;
    opacity: 0.1;
    margin-top: 59px;
}

.login-header > :not(.header-shapes-bg) {
    position: relative;
    z-index: 1;
}

.header-tagline {
    color: var(--color-bg-white);
    font-family: 'Mokoko', var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.2px;
    margin-top: 10px;
}

.logo-shell {
    max-width: 345px;
    max-height: 69px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 7.5px;
}

.logo-reversed {
    height: 31px;
    width: auto;
    object-fit: contain;
}

/* Lower part: White form body */
.login-body {
    padding: 45px 66px 20px 66px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    /* Bold Navigo */
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 2px;
    letter-spacing: 0.3px;
    font-family: Helvetica !important;
}

.form-group input {
    font-family: var(--font-sans);
    font-weight: 200;
    font-size: 18px;
    padding: 12px 16px;
    color: var(--color-text);
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    outline: none;
    transition: var(--transition-bezier);
    width: 100%;
}

.form-group input:focus {
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 4px var(--color-focus-ring);
}

.password-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 44px;
    /* Space for the icon */
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

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

.toggle-password-btn svg {
    width: 20px;
    height: 20px;
}

/* Float links layout */
.forgot-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.forgot-link-unified {
    color: var(--color-link);
    text-decoration: underline;
    font-size: 16px;
    font-weight: 200;
    transition: opacity 0.2s ease;
}

.forgot-link-unified:hover {
    opacity: 0.7;
}

/* Action button */
.submit-btn {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-bg-white);
    background-color: var(--color-terracotta);
    border: none;
    border-radius: 9999px;
    /* Half-circle pill shape */
    padding: 17px 20px 13px 20px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--color-terracotta-hover);
    box-shadow: 0 4px 12px var(--color-button-shadow);
}

.submit-btn:active {
    transform: scale(0.985);
}

/* Footer layout */
.login-footer {
    margin-top: 30px;
    text-align: center;
}

.secure-text {
    color: var(--color-text);
    font-size: 16px;
    font-weight: 200;
    /* ExtraLight */
    letter-spacing: 0.2px;
}

/* ==========================================================================
   RESPONSIVE LAYOUT & MEDIA QUERIES
   ========================================================================== */

/* Screens wider than 1200px */
@media (min-width: 1201px) {
    .page-container {
        align-items: center;
    }

    .bg-image {
        position: absolute;
        left: 0;
        top: 0;
        width: 66%;
        height: 100%;
        z-index: 1;
    }

    .login-box {
        margin-top: auto;
        margin-bottom: auto;
        margin-left: min(55vw, 90vw - 580px);
    }
}

/* Screens smaller than or equal to 1200px */
@media (max-width: 1200px) {
    .page-container {
        flex-direction: column;
        align-items: center;
        padding: 30px 15px;
    }

    .bg-image {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 50vh;
        z-index: 1;
    }

    .login-box {
        margin-top: auto;
        margin-bottom: auto;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Extra mobile screen tweaks */
@media (max-width: 580px) {
    .login-body {
        padding: 35px 33px 15px 33px;
    }

    .login-header {
        height: auto;
        gap: 15px;
        padding: 40px 20px 25px;
    }

    .logo-shell {
        max-width: 260px;
    }

    .logo-reversed {
        height: 24px;
    }

    .login-footer {
        margin-top: 45px;
    }
}
.remember_and_forget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}
.errorMessage {
    color: #FF0000;
    padding: 5px;
}
.redBG {
    border-color: #FF0000 !important;
}
.reset_password_label {
    color : #551C25;
    font-weight: 700;
    width: 300px;
    height: 36px;
    font-size : 28px;
    padding-left: 20px;
}
.security-icon {
    position: relative;
    width: 50px;
    height: 50px;
    overflow: hidden;
}
.security-icon::before {
    position: absolute;
    content: "";
    width: 50px;
    height: 50px;
    background: #efd2bc;
    border-radius: 50%;
}

/* Lock */
.lock {
    position: absolute;
    top: 12px;
    left: 15px;
    z-index: 2;
}
.check {
    position: absolute;
    top: 18px;
    left: 15px;
    z-index: 2;
}
.forget_password_element {
    display: flex;
    align-items: center;
    justify-content: center;
}
.reset_password_form {
    margin-top: 20px;
}
.forgotten_password {
    margin-top: 20px;
}
#forget_password_container, #thank_you_container {
    display:none;
}
.login-link-unified {
    text-align: center;
    font-weight: 700;
    color: #1D252D;
}
.thank_you_message_content {
    padding : 10px;
    text-align: center;
}