/* RESET START */
*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 100%;
}

/* RESET END */
/* we do this so that default eye toggle button is hidden */
/* Chrome, Safari, Edge, Opera */
input[type="password"]::-webkit-password-toggle-button {
    display: none;
}

/* Microsoft Edge / IE */
input::-ms-reveal {
    display: none;
}

/* Firefox (optional) */
input[type="password"]::-moz-password-toggle-button {
    display: none;
}
.popup-msg {
  color: red;
  font-size: 20px;
  margin-left: 5px;
  display: block;
  position: relative;
  margin-bottom: 5px;
}
.valid-msg {
  color: green;
}

/* VARIABLES */
:root {
    --main-color: #1D798B;
    --main-color-light: #F3FFFC;
    --secondary-color: #927F6E;
}


/* GENERAL CLASSES START */

.inria-serif-bold {
    font-family: "Inria Serif", serif;
    font-weight: 700;
    font-style: normal;
}

.container {
    max-width: 1157px;
    width: 90%;
    margin: 0 auto;
}

.relative {
    position: relative;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.border {
    border: 1px solid var(--main-color);
}

.nav-link {
    color: var(--white-color);
    text-transform: capitalize;
    font-family: "steppe-regular";
}

.social-media-wrapper {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

.social-media-button-facebook,
.social-media-button-google,
.social-media-button-apple {
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    background-color: var(--main-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-media-button-facebook:hover,
.social-media-button-google:hover,
.social-media-button-apple:hover {
    transform: translateY(-3px);
}
.color{
    color: var(--main-color);
}
.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: var(--main-color);
}

.or-circle {
    width: 35px;
    height: 35px;
    border: 1.5px solid var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    background-color: white;
    margin: 0 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: default;
}

.mb-3 {
    margin-bottom: 3px;
}

.g-5 {
    gap: 5px;
}

.g-16 {
    gap: 16px;
}

.g-24 {
    gap: 24px;
}

.g-28 {
    gap: 28px;
}

.mt-16 {
    margin-top: 16px;
    padding: 16px;
    width: 200px;
    height: 40px;
    text-align: center;
}

.mt-26 {
    margin-top: 26px;
}

.mb-28 {
    margin-bottom: 28px;
}

.ml-28 {
    margin-left: 28px;
}

.pointer {
    cursor: pointer;
}

.btn {
    text-decoration: none;
    transition: all 0.3s ease;

    &:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    }
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
    background-color: #675749;
}

/* button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4);
} */

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: #927F6E;
}

input[type="search"] {
    flex-grow: 1;
    transition: border-color 0.3s ease,
                box-shadow 0.3s ease,
                background-color 0.3s ease;
}

input[type="search"]:focus {
    outline: none;
    box-shadow: 0 0 5px var(--main-color);
    background-color: var(--main-color-light);
}
.width{
    width: 100vh;
}
.flex-column {
    display: flex;
    flex-direction: column;
}
/* GENERAL CLASSES END */


/* MAIN CONTAINER */
.container-main {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    margin: 40px auto;
    background-color: #fff;
}

.left {
    width: 490px;
    background: url('assets/background-final.jpg') no-repeat center center/cover;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
        
.left::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}
        
.left::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    justify-content: center;
}

.right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #fff;
}

/* AUTH CONTAINER */
.container {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-align: center;
    width: 350px;
}

input::placeholder {
    color: var(--main-color);
}


/* WELCOME MESSAGE */
.welcome {
    font-size: 40px;
    color: var(--main-color);
    margin-bottom: 20px;
}


/* INPUTS */
input {
    display: block;
    border: 2px solid var(--main-color);
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
}

input::placeholder {
    color: var(--main-color);
}


/* FORGOT PASSWORD */
.forgot-password {
    font-size: 14px;
    color: var(--main-color);
    margin-top: 6px;
}


/* EYE ICON */
#eye-toggle-btn {
    position: absolute;
    top: 7px;
    right: 10px;
    border:none;
    background: none;
    /* transform: translateY(-50%); */
    cursor: pointer;
}


/* BUTTONS */
.sign-in-button {
    width: 100%;
    padding: 10px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.sign-in-button:hover {
    background-color: #675749;
}


/* SPANS */
span {
    color: #1d798b;
    cursor: pointer;
}


/* CODE INPUT */
.code-container {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.code-input {
    height: 34px;
    border: 2px solid var(--main-color);
    border-radius: 12px;
    text-align: center;
    color: #0f3d46;
    transition: all 0.2s ease;
    caret-color: transparent;
    background: #fafbff;
}

.code-input:focus {
    border-color: var(--secondary-color);
    background: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    outline: none;
}

.code-input.filled {
    border-color: #a3bffa;
    background: #f0f4ff;
}



/* MOBILE STYLES */
@media (max-width: 670px) {
    body {
        padding: 0;
        display: block;
        margin-top: 0;
        background-color: #f5f8fa; /* Ensure background color is set */
    }

    .container-main {
        flex-direction: column;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
        position: relative;
    }

    .left {
        min-height: 100vh;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1;
    }

    .right {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 345px;
        max-width: 400px;
        height: auto; /* Changed from 75vh to auto for better form fit */
        max-height: 80vh; /* More reasonable max height */
        padding: 0;
        background: transparent;
        z-index: 20;
        margin-top: 0; /* Remove previous margin-top */
    }

    .container {
        width: 100%;
        padding: 0;
        margin: 0;
        background: transparent;
        box-shadow: none;
    }

    .form-container {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
        animation: fadeIn 0.8s ease-out;
        margin: 0;
        padding: 2rem;
        background: white;
        border-radius: 10px;
        max-height: 100%;
        overflow-y: auto;
    }

    .content {
        padding: 20px;
    }

    /* Form element adjustments for mobile */
    input {
        padding: 12px;
        font-size: 16px; /* Better for mobile touch */
    }

    button[type="submit"] {
        padding: 14px;
    }

    .logo-wrapper {
        margin-bottom: 20px;
    }

    .welcome {
        font-size: 32px;
    }

    .divider {
        margin: 20px 0;
    }
    .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: white;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    }
    .scale-container {
    margin-left: -17px; /* Half of scale width (36px/2) to center it under 70px image */
    }
    
/* Code input part */
    /* .code-container {
        gap: -20%;
    }
    
    .code-input {
        flex: 1;
        height: -20%;
        font-size: 18px;
    } */
}

/* Animation for the form */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}