/* ============================================================
   File: custom-login.css
   Compatibility: Firefox 38.0+, Chrome, Edge, Safari
   Scaling:
     - Laptops (1366x768) -> 70%
     - Desktops (1920x1080) -> 80%
   ============================================================ */

/* FONT LOAD */
@font-face {
    font-family: 'Nunito Sans';
    src: url('fonts/NunitoSans.ttf') format('truetype');
    font-style: normal;
}

/*
   GLOBAL RESET
   - html height: 100% is REQUIRED for Firefox 38 vertical centering.
   - overflow: hidden prevents scrollbars when scaling occurs.
*/
html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-y: auto;
}

body {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    font-family: 'Nunito Sans', sans-serif;
   
    /* FLEXBOX CENTERING (Supported by Firefox 38+) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centers Vertically */
   
    background-color: #F9F9F9;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*
   MAIN CONTAINER
   This is the ONLY element that gets scaled.
*/
.centered-content-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;    
    max-width: 1000px;
    width: 90%;
    margin: auto;
    padding: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: visible;
    background: #fff;
   
    /* Smooth scaling transition */
    transition: transform 0.3s ease;
}

/* ============================================================
   STRICT SCALING RULES
   Using 'transform' ensures Firefox 38 behaves exactly like Chrome.
   ============================================================ */

/*
   SCENARIO 1: LAPTOPS (e.g., 1366x768)
   Logic: If screen width is between 1000px and 1500px
   Action: Scale to 70%
*/
@media screen and (min-width: 1000px) and (max-width: 1500px) {
    .centered-content-wrapper {
        /* Standard */
        transform: scale(0.7);
       
        /* Legacy Browsers */
        -moz-transform: scale(0.7);    /* Old Firefox */
        -ms-transform: scale(0.7);     /* IE 9 */
        -webkit-transform: scale(0.7); /* Old Chrome/Safari */
       
        /* CRITICAL: Keep it in the middle of the screen */
        transform-origin: center center;
        -moz-transform-origin: center center;
    }
}

/*
   SCENARIO 2: DESKTOPS (e.g., 1920x1080)
   Logic: If screen width is larger than 1501px
   Action: Scale to 80%
*/
@media screen and (min-width: 1501px) {
    .centered-content-wrapper {
        /* Standard */
        transform: scale(0.8);
       
        /* Legacy Browsers */
        -moz-transform: scale(0.8);
        -ms-transform: scale(0.8);
        -webkit-transform: scale(0.8);
       
        /* CRITICAL: Keep it in the middle of the screen */
        transform-origin: center center;
        -moz-transform-origin: center center;
    }
}

/* ============================================================ */

/* LAYOUT SECTIONS */
.section-left, .section-right {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    flex: 1; /* Each takes 50% width */
}

/* BACKGROUND IMAGE */
.section-left {
    background-image: url('/OA_MEDIA/cbebgcolored.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #ffffff;
    background-position: center center;
    padding: 0;
    width: 50%;
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
}

/* FORM AREA */
.section-right {
    justify-content: center;
    background: #fff;
    padding: 0;
    width: 50%;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
}

/* FORM CONTAINER */
.login_form {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 10px;
    padding: 41px 30px;
}

/* LOGO */
.login_form .logo {
    display: block;
    margin: 0 auto 30px auto;
    height: 90px;
    width: auto;
}

/* HEADER TEXT */
.login_form .separator {
    text-align: center;
    font-weight: 500;
    margin-bottom: 24px;
    position: relative;
}

.login_form .separator span {
    background: #fff;
    z-index: 1;
    padding: 0 10px;
    position: relative;
    color: #333;
}

.login_form .separator::after {
    content: '';
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    height: 1px;
    background: #C2C2C2;
    display: block;
}

/* ERROR BOX */
#errorBox, .error-message {
    color: #d9534f;
    background-color: #f9f2f4;
    border: 1px solid #ebccd1;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 13px;
    width: 100%;
}

/* INPUTS */
.input_box {
    margin-bottom: 25px;
    text-align: left;
}

.input_box label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #828282;
}

.input_box input {
    width: 100%;
    height: 50px;
    border: 1px solid #DADAF2;
    border-radius: 5px;
    outline: none;
    font-size: 14px;
    padding: 0px 20px;
    transition: 0.2s ease;
}

.input_box input:focus {
    border-color: #85257C;
    box-shadow: 0 0 5px rgba(133, 37, 124, 0.2);
}

/* BUTTONS */
#ButtonBox {
    width: 100%;
    margin-bottom: 15px;
}

#ButtonBox button {
    width: 100%;
    height: 45px;
    border-radius: 3px;
    border: none;
    outline: none;
    background: #7F265B;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s ease;
}

#ButtonBox button:hover {
    background: #85257C;
}

/* LINKS */
.Login_assistance, #logoutLink {
    text-align: center;
    margin-top: 10px;
}

a {
    text-decoration: none;
    color: #626cd6;
    font-weight: 500;
    padding: 5px;
}

a:hover {
    text-decoration: underline;
}

/* FOOTER */
footer {
    width: 90%;
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: left;
    font-size: 14px;
    color: #000000;
    padding: 5px 0;
}

#CopyrightBox span{
	color: #000000 !important;
}

.footer-content {
    width: 100%;
    max-width: 1700px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-links a {
    color: #000000;
    margin-left: 15px;
    text-decoration: none;
}

/* MOBILE */
@media (max-width: 767px) {
    .centered-content-wrapper {
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        width: 100%;
        background: transparent;
        flex-direction: column;
       
        /* Reset Scaling on Mobile */
        transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
        -webkit-transform: none !important;
    }

    .section-left { display: none; }
    .section-right { width: 100%; flex: none; border-radius:10px; }
   
    .login_form {
         box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
         border-radius: 10px;
         padding: 30px 20px;
    }
   
    .footer-content {
        flex-direction: column;
    }
    .footer-links {
        margin-top: 10px;
    }
}