/*full screen backgroun*/
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image:  url('../images/african-kid-enjoying-life.jpg') ;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

/*===================================
login  and signup css styles
==============================*/
.login_container{
    width: 350px;
    margin: 40px auto;
    padding: 20px;
    background-image: #003366;
    border: 1px solid #ff9800;
    box-shadow: 0 0 10px rgb(6, 10, 50);
    border-radius: 20px;
    /* Add background image properties */
    background-image: url('../images/boychild.png'); /* Update with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* If you want the blue color as overlay, use background-color with opacity */
    background-blend-mode: overlay;
}

.form_container{
    padding: 20px;
    /* Add semi-transparent background to make form content more readable */
    background-color: rgba(238, 188, 129, 0.8);
    border-radius: 15px;
    backdrop-filter: blur(2px); /* Optional: adds subtle blur effect */
}

.login_form, .signup-form{
   padding: 20px;
}

input[type="text"],input[type='email'], input[type="password"], select{
    width: 100%;
    padding: 10px;
    background-color: #fff;
    margin-bottom: 10px;
    border: 2px solid;
    border: 2px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
}

/* Password Visibility Toggle */
.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100% !important;
    padding-right: 45px !important;
    margin-bottom: 0 !important;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) !important;
    cursor: pointer;
    color: #666;
    user-select: none;
    z-index: 20;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #cc5200;
}

/* Dropdown styles */
select{
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff; /* Keep white background for dropdown */
    color: #333; /* Ensure text is readable */
    font-size: 12px;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 9L12 15L18 9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.65em;
    transition: border-color 0.3s ease;
}

select:focus {
    border-color: #007bff; /* Changed to blue focus color */
    outline: none;
}

option {
  padding: 0.5rem;
  background-color: #fff;
  color: #333;
}

/* If you want transparent dropdown instead */
/*
select {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}
*/

button[type='submit']{
    width: 70%;
    padding: 10px;
    background-color: #cc5200;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}
button[type='submit']:hover{
    background-color: #012b3e;
}

#signup-button,#login-button{
    color: #cc5200;
}

.login-link {
    font-size: 16px;
    color: #010b13;
    text-align: center;
}

.login-link a {
    text-decoration: none;
    color: #f3f6f8;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a span {
    border-bottom: 1px dashed transparent;
}

.login-link a:hover span {
    border-bottom: 1px dashed #007bff;
    color: #0056b3;
}
/* the links of home and forgot password */
/* the links of home and forgot password */
.reset-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cc5200;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 0; /* More padding for better spacing */
    line-height: 1.4; /* Better vertical alignment */
}

.reset-link:hover {
    color: #cc5200;
    transform: translateX(3px);
}

.material-icons {
    font-size: 24px; /* Even bigger icons */
    transform: translateY(4px); /* Moves icon down precisely */
    display: inline-flex;
    align-items: center;
}



/* Error message styling - CENTERED */
.error-alert {
    background-color: #ffebee;
    border: 1px solid #f44336;
    border-radius: 8px;
    color: #d32f2f;
    padding: 15px 20px;
    margin: 15px auto; /* Center horizontally */
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center; /* Center content inside */
    animation: fadeIn 0.3s ease-in;
    max-width: 400px; /* Optional: limit width */
    text-align: center;
    box-shadow: 0 2px 5px rgba(244, 67, 54, 0.2);
}

.error-alert .material-icons {
    font-size: 20px;
    margin-right: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}