/* Local font with swap behavior */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../../assets/fonts/poppins-v24-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../../assets/fonts/poppins-v24-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../../assets/fonts/poppins-v24-latin-600.woff2') format('woff2');
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
.container{
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 30px;

    /* tile your seamless image here: */
    background-image: url('/assets/background_login_clean.webp');
    background-repeat: repeat;
    background-size: 1500px 1500px;

    background-color: transparent;
}
.form{
    position: absolute;
    max-width: 430px;
    width: 100%;
    padding: 50px;
    border-radius: 26px;
    background: #FFF;
}
.form.signup{
    opacity: 0;
    pointer-events: none;
}
.forms.show-signup .form.signup{
    opacity: 1;
    pointer-events: auto;
}
.forms.show-signup .form.login{
    opacity: 0;
    pointer-events: none;
}
header{
    font-size: 28px;
    font-weight: 600;
    color: #232836;
    text-align: center;
}
form{
    margin-top: 30px;
}
.form .field{
    position: relative;
    height: 50px;
    width: 100%;
    margin-top: 20px;
    border-radius: 6px;
}
.field input,
.field button{
    height: 100%;
    width: 100%;
    border: none;
    font-size: 16px;
    font-weight: 400;
    border-radius: 6px;
}
.field input{
    outline: none;
    padding: 0 15px;
    border: 1px solid#CACACA;
}
.field input:focus{
    border-bottom-width: 2px;
}

.input-icon{
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #8b8b8b;
    cursor: pointer;
    padding: 5px;
}

.field button{
    color: #fff;
    background-color: #0171d3;
    transition: all 0.3s ease;
    cursor: pointer;
}
.field button:hover{
    background-color: #016dcb;
}
.form-link{
    text-align: center;
    margin-top: 10px;
}
.form-link span,
.form-link a{
    font-size: 14px;
    font-weight: 400;
    color: #232836;
}
.form a{
    color: #0171d3;
    text-decoration: none;
}
.form-content a:hover{
    text-decoration: underline;
}
.line{
    position: relative;
    height: 1px;
    width: 100%;
    margin: 36px 0;
    background-color: #d4d4d4;
}
.line::before{
    content: 'Or';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #FFF;
    color: #8b8b8b;
    padding: 0 15px;
}
.line-simple{
    position: relative;
    height: 1px;
    width: 100%;
    margin: 16px 0;
    background-color: #d4d4d4;
}

.media-options a{
    display: flex;
    align-items: center;
    justify-content: center;
}
a.facebook{
    color: #fff;
    background-color: #4267b2;
}
a.facebook .facebook-icon{
    height: 28px;
    width: 28px;
    color: #0171d3;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}
.facebook-icon,
img.google-img{
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
}
img.google-img{
    height: 20px;
    width: 20px;
    object-fit: cover;
}
a.google{
    border: 1px solid #CACACA;
}
a.google span{
    font-weight: 500;
    opacity: 0.6;
    color: #232836;
}

@media screen and (max-width: 400px) {
    .form{
        padding: 20px 10px;
    }
    
}





.input-field {
    margin-bottom: 20px; /* Space between the input field and the next form field */
}
.error-message {
    display: block;
    margin-top: 5px; /* Space between input field and error message */
    color: red;
    font-size: 12px;
    visibility: hidden; /* Initially hide the error message but occupy space */
}

.hidden {
    display: none;
}

.error-visible {
    visibility: visible; /* Make the error message visible when needed */
}
.input.error {
    border-color: red;
}
.password.error {
    border-color: red;
}
.error-container-gap {
    margin-bottom: 30px;
}

.error-container-gap-psw {
    margin-bottom: 60px;
}


/* For Chrome, Safari, Edge, and Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* For Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* Optional: To hide the increment/decrement buttons for all browsers */
input[type=number] {
    appearance: textfield;
}

.message-main {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    opacity: 0.8;
}

/* Google sign in button */
.g_id_signin {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Optional: Ensuring the button inside the container takes full width */
.g_id_signin .abcRioButton {
    width: 100%;
}

/* Progress line styles */
#progress-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #3f51b5 30%, #ff4081 50%, #3f51b5 70%);
    background-size: 200% 100%;
    z-index: 1000;
    animation: progress-animation 2s linear infinite;
    display: none; /* Hidden by default */
}

/* Keyframes for the infinite progress animation */
@keyframes progress-animation {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Alerts */
/* Base alert styles */
.alert {
    display: none; /* Hidden by default */
    float: left;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Info alert specific styles */
.alert-info {
    background-color: #e0f7fa;
    color: #00695c;
    border-left: 5px solid #00897b;
}

/* Alert icon */
.alert-icon {
    text-align: center;
    font-size: 24px;
    vertical-align: middle;
}

/* Alert message */
.alert-message {
    flex: 1;
    color: #333;
    font-size: 1rem;
}

/* Close button */
.alert-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 0 0 0 16px;
}

.alert-box.error {
    border-left-color: #e63946;
    list-style-position: inside;
}

.alert-box.warning {
    border-left-color: #f4c430;
    list-style-position: inside;
}

.alert-box.info {
    border-left-color: #007BFF;
    list-style-position: inside;
}

.alert-close:hover {
    color: #004d40;
}
.alert-close:hover {
    color: #000;
}
.alert-box {
    display: none;               /* hidden by default */
    align-items: center;         /* vertically center content */
    padding: 16px;
    border-left: 4px solid;      /* color will come from the class below */
    background: #ececec;
    border-radius: 4px;
}
.alert-box {
    margin-bottom: 1.5rem; /* adjust to taste */
}
.alert-col {
    flex-grow: 1;
    width: 33%;

}

.alert-col.md {
    min-height: 100px;
}

.alert-col.lg {
    min-height: 150px;
}

.alert-icon {
    font-size: 24px;
    max-width: 10px;
    align-content: center;
    align-items: center;
    margin: auto;
}
.alert-icon.info {
    background-color: #2587aa;
}

.alert-icon.error {
    background-color: red;
}
.alert-icon.success {
    background-color: forestgreen;
}


.alert-close-btn {
    max-width: 36px;
    background: #e8e8e8;
    font-size: 24px;
    vertical-align: center;
    text-align: center;
    align-content: center;
    align-items: center;
}

.closebtn {
    margin-left: 10px;
    margin-right: 10px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.closebtn:hover {
    color: black;
}


.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    margin-bottom: 20px;
    margin-top: 15px;
}

.login-logo {
    width: 125px;      /* Adjust if you want bigger/smaller */
    height: 125px;
    border-radius: 30px; /* Optional: soft rounded look */
    object-fit: cover;
    transform: scale(1.15);
}

.login-logo {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.logo-link {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
}

.auth-error-title {
    margin-bottom: 8px;
}

.auth-error-list {
    margin: 0;
    padding-left: 18px;
}

.auth-error-list li {
    margin-bottom: 6px;
}

.auth-footer-links {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    font-weight: 500;
}

.auth-footer-links a {
    color: #8d8d8d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer-links a:hover {
    color: #6f6f6f;
}