/* assets/css/index.css */

.login-form {
    width: 350px;
    padding: 40px;
    background: linear-gradient(to top right, #242732, #394452); /* Gradient applied to the form */
    border-radius: 12px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.7);
    text-align: center;
    box-sizing: border-box;
}

.login-image {
    width: 150px;
    margin-bottom: 10px;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top right, #242732, #394452); /* Gradient background for the button */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.5s ease; /* Smooth transition for hover effect */
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.7);
    margin-top: 15px;
}

.login-form button:hover {
    background: linear-gradient(to top right, #394452, #242732); /* Darker gradient when hovered */
}

.error-container {
    color: red;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: linear-gradient(to top right, #394452, #242732);
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #394452;
    color: #cacaca;
}

/* Styling for error messages under inputs */
.error-message {
    color: red;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 10px;
}

/* Ensure the body and html take full width and prevent overflow */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Body container setup */
body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to top right, #242732 0%, #394452 100%);
    background-size: cover;
    background-position: center; 
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden; /* Ensures no horizontal overflow */
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
    padding: 20px;
}

.login-form h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: white;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
    color: #ffffff
}

/* Footer style */
.footer {
    margin-top: 20px;
    font-size: 12px;
    color: #888;
    text-align: center;
    padding: 10px;
    background: linear-gradient(to top right, #242732, #394452);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    width: 100%; /* Ensure footer spans the full width */
    box-sizing: border-box; /* Includes padding in the width calculation */
    margin: 0; /* Ensure no extra margin that could cause overflow */
}

/* Stilizarea pentru link-ul de înregistrare din pagina de login */
.signup-link {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #d6d0d0;
    font-weight: bold;
    margin-left: 20px;
}

.signup-link a {
    color: #1fa04a; /* Poți schimba culoarea după preferințe */
    text-decoration: none;
    font-weight: bold;
}

.signup-link a:hover {
    text-decoration: underline;
}

.reset-link {
    text-align: center;
    margin-top: -20px;
    font-size: 14px;
    color: #d6d0d0;
    font-weight: bold;
    margin-left: 25px;
}

.reset-link a {
    color: #1fa04a; /* Poți schimba culoarea după preferințe */
    text-decoration: none;
    font-weight: bold;
}

.reset-link a:hover {
    text-decoration: underline;
}

.error-message-login {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}
.success-message-login {
    color: green;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

/* Poziționare pentru selectorul de limbă, care va apărea în partea dreaptă sus a paginii */
.language-switcher {
    position: fixed;
    top: 20px;         /* ajustează după preferințe */
    right: 75px;       /* ajustează după preferințe */
    z-index: 1000;
}

/* Dimensiunea butonului (rămâne aceeași, dar poți ajusta după preferințe) */
.language-button {
    width: 50px;
    height: 50px;    
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.language-button:hover {
  transform: scale(1.2);
}

.language-button img {
    width: 140%;    /* imaginea se scalează astfel încât să depășească ușor butonul */
    height: auto;
    display: block;
}

/* Dropdown-ul limbii */
.language-dropdown {
    display: none;
    position: absolute;
    top: 55px;      /* plasare dedesubtul butonului */
    left: 5px;       /* aliniere la dreapta */
    background: #394452;
    padding: 10px;
    border-radius: 6px;
    z-index: 1000;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
}

.language-switcher:hover .language-dropdown {
    display: flex;
    flex-direction: column;
}

.language-dropdown button {
    background: none;
    border: none;
    margin-bottom: 5px;
    cursor: pointer;
    padding: 2px;
    transition: transform 0.2s ease;
}

.language-dropdown button:hover {
    transform: scale(1.1);
  }
/* Container pentru câmpul de parolă și iconiță */
.password-container {
    position: relative;
    /* ELIMINAT: display: flex; */
    /* ELIMINAT: align-items: center; */
    /* ELIMINAT: flex-wrap: nowrap; */
    width: 100%;
    margin-bottom: 15px; /* Adăugăm spațiu sub containerul parolei */
}

/* Stil pentru iconița ochi */
#togglePassword {
    position: absolute;
    top: 50%;
    right: 10px; /* Ajustat puțin */
    /* MODIFICAT: Ajustăm transform doar pentru Y */
    transform: translateY(-50%);
    cursor: pointer;
    color: #888; /* Culoare iconiță */
    font-size: 16px; /* Mărime iconiță */
}

/* ADAUGAT: Efect hover pentru iconița ochi */
#togglePassword:hover {
    color: #bbb; /* Schimbă culoarea la hover */
    transform: translateY(-50%) scale(1.1); /* Mărește ușor iconița */
}

/* Ajustează padding-ul inputului de parolă pentru a nu se suprapune cu iconița */
.password-container input[type="password"],
.password-container input[type="text"] { /* Aplică și când e text */
    /* Lățime 100% din container */
    width: 100%;
    padding-right: 35px; /* Spațiu pentru iconița ochi */
    box-sizing: border-box; /* Include padding în lățime */
    /* Eliminat flex-grow */
    /* Eliminăm margin-bottom de pe input, l-am pus pe container */
    margin-bottom: 0;
}

/* Stil pentru mesajul de avertizare Caps Lock */
.caps-warning {
    color: #ffc107; /* O culoare de avertizare, ex: galben */
    font-size: 0.8em;
    position: absolute;
    /* MODIFICAT: Poziționare absolută în dreapta */
    top: 50%; /* Centrare verticală */
    left: 100%; /* Începe imediat după marginea dreaptă a containerului */
    transform: translateY(-50%); /* Ajustare centrare verticală */
    margin-left: 10px; /* Spațiu între container și mesaj */
    white-space: nowrap; /* Previne trecerea pe rândul următor */
    /* Ascuns inițial, JS îl va afișa */
    display: none;
}

.remember-me-container {
    justify-content: center; /* Centrează orizontal conținutul */
    margin-top: 30px; /* Reducem spațiul deasupra */
    margin-bottom: -10px;
    display: flex;
    align-items: center;
}
.remember-me-container input[type="checkbox"] {
    width: auto; 
    margin-right: 8px;
    margin-top: 0; /* Eliminăm marja implicită de sus */
    margin-bottom: 0;
}
.remember-me-container label {
    margin-bottom: 0; /* Eliminam spatiul de sub label */
    color: #1fa04a;
    font-weight: bold;
    font-size: 15px;
}

  /* Toast Message Styles */
.csrf-toast-message {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: visibility 0.5s, bottom 0.5s, opacity 0.5s ease-in-out;
    opacity: 0;
    background-color: #d9534f;
}

.csrf-toast-message.toast-show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

.csrf-toast-message.error {
    background-color: #d9534f; /* Red */
}

.csrf-toast-message.success {
    background-color: #5cb85c; /* Green */
}