

body, html {
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);

}

.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

.login-container {
    opacity: 0;
    transform: scale(0.6);
    animation: bounceScaleIn 0.8s ease-in-out forwards;
}

.register-container {
    opacity: 0;
    transform: scale(0.5);
    animation: bounceScaleIn 0.8s ease-in-out forwards;
    padding-top: 25px;

}

.reset-password-container {
    opacity: 0;
    transform: scale(0.6);
    animation: bounceScaleIn 0.8s ease-in-out forwards;
}

/* Bounce Scale-in Animation */
@keyframes bounceScaleIn {
    0% { opacity: 0; transform: scale(0.8); }
    60% { opacity: 1; transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Center container */
/* Adjust login card to always fit browser */
.center {
    width: min(450px, 90vw); /* Ensure it doesn't go too wide */
    max-height: 75vh; /* Prevent overflow issues */
    background: #1b4332;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 40px;
    padding-top: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Artistic stripes */
.center::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1));
    transform: rotate(45deg);
    z-index: 0;
}

/* Logo styling */
.logo {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1;
    position: relative;
}

.logo img {
    width: 60%;
}

/* Heading */
.center h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

/* Input fields */
.txt_field {
    position: relative;
    margin-bottom: 30px;
    border-bottom: 2px solid #f2ecae;
    z-index: 1;
}

.txt_field input {
    width: 100%;
    padding: 10px 5px;
    border: none;
    background: none;
    font-size: 1rem;
    outline: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.txt_field label {
    position: absolute;
    top: 50%;
    left: 5px;
    color: #f2ecae;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.txt_field input:focus ~ label,
.txt_field input:valid ~ label {
    top: -5px;
    color: #95d5b2;
    font-size: 0.8rem;
}

.txt_field span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #95d5b2;
    transition: all 0.3s ease;
}

.txt_field input:focus ~ span {
    width: 100%;
}

/* Submit button */
input[type="submit"] {
    width: 100%;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, #2d6a4f, #081c15);
    border-radius: 20px;
    font-size: 1rem;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(39, 44, 30, 0.4);
    z-index: 1;
    position: relative;
}

input[type="submit"]:hover {
    background: linear-gradient(135deg, #081c15, #2d6a4f);
    box-shadow: 0 8px 20px rgba(39, 44, 30, 0.5);
}

/* Links */
.signup_link {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #c8c8c8;
    z-index: 1;
    position: relative;
}

.signup_link a {
    color: #f2ecae;
    text-decoration: none;
    font-weight: bold;
}

.signup_link a:hover {
    text-decoration: underline;
}

/* Completely remove autocomplete styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: #ffffff !important; /* Match your text color */
    box-shadow: none !important;
    border: none !important;
}

/* Ensure no borders or box styles */
input {
    border: none;
    outline: none;
}

/* Base card styles */
.center {
    transition: transform 0.6s ease-in-out, opacity 0.3s ease-in-out;
    transform-style: preserve-3d;
    position: relative;
    opacity: 1;
}

/* Flip Effect */
/*.center.flip {*/
/*    transform: rotateY(180deg); !* Flips the card *!*/
/*}*/

/* Pre-Flip Animation: Add a subtle tilt or bounce */
.center.pre-flip {
    transform: scale(1.05) rotateX(10deg); /* Slight tilt forward */
}

/* Front face */
.center .front,
.center .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Ensure only one side is visible at a time */
    border-radius: 15px;
}

/* Back face (starts flipped) */
.center .back {
    transform: rotateY(180deg);
}

.checkbox {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    cursor: pointer;
}

.checkbox label {
    font-size: 1rem;
    color: #f2ecae;
    cursor: pointer;
}

.checkbox input[type="checkbox"] {
    -webkit-appearance: none; /* Remove default styling */
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #f2ecae;
    border-radius: 4px;
    background: transparent;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox input[type="checkbox"]:checked {
    background: #f2ecae; /* Green background when checked */
    border-color: #95d5b2;
}

.checkbox input[type="checkbox"]:checked::after {
    content: ''; /* Checkmark character */
    position: absolute;
    font-size: 14px;
    color: #f2ecae; /* Darker green for the checkmark */
    left: 3px;
    top: 0;
    text-align: center;
}

.checkbox input[type="checkbox"] + label {
    cursor: pointer;
}

/* Footer container */
.login-footer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px; /* Space between circles */
}

/* Footer at the bottom */
.login-footer {
    position: relative;
    /*bottom: 10px; !* Adjust space from bottom *!*/
    /*left: 50%;*/
    /*transform: translateX(-50%);*/
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Adjust spacing between circles */
    width: 100%;
}

 /*General styling for the circles */
.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    /*border-radius: 50%;*/
    /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);*/
    /*overflow: hidden;*/
    /*flex-shrink: 0;*/
}

/* Individual control over each circle */
.logo-left {
    width: 100px;
    height: 100px;
}
.logo-center {
    width: 110px;
    height: 110px;
}
.logo-right {
    width: 100px;
    height: 100px;
}

/* Control logo size inside circles */
.logo-left img {
    max-width: 150px;
    max-height: 150px;
}
.logo-center img {
    max-width: 120px;
    max-height: 120px;
}
.logo-right img {
    max-width: 170px;
    max-height: 170px;
}

/* RESPONSIVE FIXES */

/*!* Tablets (Medium Screens) *!*/
/*@media (max-width: 1024px) {*/
/*    .login-container {*/
/*        width: 50vw; !* Slightly bigger *!*/
/*        max-width: 380px;*/
/*    }*/
/*}*/

/* Mobile Phones */
@media (max-width: 768px) {
    .login-container {
        width: 85vw; /* Expand to full width */
        padding: 1.5rem;
        max-width: 95vw;
    }

    .login-container input,
    .login-container button {
        font-size: 1rem;
        padding: 0.7rem;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .login-container {
        width: 90vw;
        padding: 1.2rem;
        transform: scale(1.1); /* Slight scaling for very small phones */
    }

    .login-container input,
    .login-container button {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
}