/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #202124;
}

.is_hidden {
    display: none !important;
}

/* Centering the container */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1040px;
    height: 415px;
    padding: 0 20px;
}

.login-box-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
}

.logo-container {
    position: absolute;
}

/* Styling the login box */
.login-box {
    background-color: white;
    border-radius: 28px;
    padding: 36px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    width: 100%;
    height: 100%;
    max-width: 1040px;
}

/* Left-side: logo and text styling */
.left-side {
    display: inline;
    text-align: left;
    margin-top: 50px;
}

.left-side h1 {
    font-size: 46px;
    margin-top: 25px;
    font-weight: 400;
    margin-bottom: 15px;
}

.left-side p {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 30px;
    font-weight: 400;
    display: inline;
}

.left-side svg {
    width: 48px;
    height: 48px;
    margin-top: 30px;
}

/* Right-side form styling */
.right-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 450px;
    margin-left: auto;
}

.input-group {
    margin-bottom: 12px;
}

input {
    width: 100%;
    padding: 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

input:focus {
    border-color: #0b57d0;
}

.form-options a {
    font-size: 14px;
    color: #0b57d0;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}

.info-text {
    color: #5f6368;
    margin-top: 24px;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
}

.info-text a {
    color: #0b57d0;
    text-decoration: none;
}

.info-text a:hover {
    text-decoration: underline;
}

/* Button styling */
.login-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: absolute;
    bottom: 40px;
    right: 40px;
}

button {
    padding: 10px 24px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.primary-button {
    background-color: #0b57d0;
    color: white;
    font-weight: 500;
    border-radius: 20px;
}

.primary-button:hover {
    background-color: #185abc;
}

.secondary-button {
    background-color: transparent;
    color: #0b57d0;
    font-weight: 500;
    margin-right: 40px;
}

.secondary-button:hover {
    background-color: #f1f3f4;
    border-radius: 20px;
}

/* Footer */
footer {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1040px;
    color: #5f6368;
    font-size: 12px;
}

.footer-left {
    display: flex;
    align-items: center;
}

.language-select {
    display: flex;
    align-items: center;
}

.language-select .arrow {
    font-size: 12px;
    margin-left: 6px;
}

.footer-right {
    display: flex;
    gap: 16px;
}

.footer-right a {
    color: #5f6368;
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

/* General container styles */
.input-container, .password-container {
    position: relative;
    margin-bottom: 20px;
}
.input-container {
    margin-bottom: 0;
}
input[type="email"], input[type="password"] {
    width: 100%;
    padding: 16px 14px;
    font-size: 16px;
    border: 1px solid #747775;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Label (acting as floating placeholder) */
.input-container label, .password-container label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background-color: white;
    padding: 0 5px;
    color: #747775;
    font-size: 14px;
    pointer-events: none;
    transition: 0.3s ease;
}

.invalid input {
    border-color: #b3261e !important;
}

.invalid label {
    color: #b3261e !important;
}

.input-container input:focus,
.password-container input:focus {
    border-color: #0b57d0; /* Change to your desired color on focus */
}

/* When input is focused or has content, move the label */
.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label,
.password-container input:focus + label,
.password-container input:not(:placeholder-shown) + label {
    top: 2px;
    left: 10px;
    font-size: 12px;
    color: #0b57d0;
}

/* Remove default placeholder styling */
input::placeholder {
    color: transparent; /* Hide the placeholder text */
}

/* Email address styling */
.email-container {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    border-radius: 16px;
    background: transparent;
    border: 1px solid #000;
    padding: 6px 24px;
    cursor: pointer;
    user-select: none;
}


/* Hover effects */
.email-container:hover {
    background-color: #e9ecef; /* Light gray on hover */
    border-color: #007bff; /* Change border color on hover */
}


@media screen and (max-width: 768px)  {
    .login-container {
        height: unset;
    }
    .login-box {
        display: flex;
        flex-direction: column;
    }

    .right-side {
        width: unset;
    }

    .login-actions {
        position: unset;
    }
}

.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999
}

.spinner {
    width: 56px;
    height: 56px;
    border: 6px solid #ddd;
    border-top-color: #111;
    border-radius: 50%;
    animation: spin 1s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.muted {
    color: #666;
    font-size: 14px;
    margin-top: 8px;
    text-align: center
}

.recovery p {
    font-size: 16px;
    margin-bottom: 30px;
    display: block;
    color: black;
}
.recovery .email-container {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 30px;
    font-weight: 400;
    display: inline;
}

.recovery h1 {
    font-size: 2em;
}


.code h2 {
    font-family: "Google Sans", roboto, "Noto Sans Myanmar UI", "Noto Sans Khmer", arial, sans-serif;
    font-size: 3.5625rem;
    line-height: 1.1228070175;
    text-align: center;
    font-weight: 400;
}

.code h4 {
    color: #1f1f1f;
    display: flex;
    font-family: "Google Sans", roboto, "Noto Sans Myanmar UI", "Noto Sans Khmer", arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
}

.code .sub-title {
    margin-bottom: 16px;
    margin-top: 10px;
}
