/* ====================
   RESET & BASE STYLES
   ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow: hidden;          /* Eliminăm scroll-ul pe body */
}

/* ====================
   LAYOUT PRINCIPAL SPLIT
   ==================== */
.login-wrapper {
  display: flex;              /* Flexbox pentru split stânga-dreapta */
  height: 100vh;              /* Fixed height exact viewport */
  overflow: hidden;           /* Fără scroll */
}

/* ====================
   PARTEA STÂNGĂ - IMAGINE
   ==================== */
.login-left {
  flex: 2.33;                 /* 70% din ecran (70/30 ratio) */
  min-width: 70%;             /* Lățime minimă 70% */
  position: relative;
  
  /* BACKGROUND IMAGE - AICI SE SETEAZĂ IMAGINEA */
  background-image: url('../images/login/carte.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay peste imagine - ELIMINAT */
.brand-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: none; - Fără overlay albastru */
  
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}

/* Conținut brand (logo, text) */
.brand-content {
  text-align: center;
  color: white;
}

.brand-logo {
  display: none;              /* Logo ascuns */
  max-width: 200px;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.brand-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  display: none;              /* Titlu ascuns */
}

.brand-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.95;
  display: none;              /* Subtitle ascuns */
}

/* ====================
   PARTEA DREAPTĂ - FORMULAR
   ==================== */
.login-right {
  flex: 1;                    /* 30% din ecran (70/30 ratio) */
  min-width: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;            /* Padding redus */
  background-color: #ffffff;  /* Fundal alb pentru formular */
  overflow-y: auto;           /* Scroll doar dacă este necesar */
  max-height: 100vh;          /* Maxim viewport height */
}

.login-form-container {
  width: 100%;
  max-width: 400px;           /* Lățime redusă de la 450px */
  padding: 1.5rem;            /* Padding redus de la 2.5rem */
}

/* ====================
   HEADER FORMULAR
   ==================== */
.login-header {
  text-align: center;
  margin-bottom: 1.5rem;      /* Redus de la 2.5rem */
}

.logo-mobile {
  display: none;              /* Ascuns pe desktop, vizibil pe mobil */
  max-width: 100px;           /* Redus de la 120px */
  height: auto;
  margin: 0 auto 1rem;        /* Redus de la 1.5rem */
}

.login-title {
  font-size: 1.5rem;          /* Redus de la 2rem */
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.35rem;     /* Redus de la 0.5rem */
}

.login-subtitle {
  font-size: 0.875rem;        /* Redus de la 1rem */
  color: #666;
  font-weight: 400;
}

/* ====================
   FORM STYLES
   ==================== */
.login-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1rem;        /* Redus de la 1.5rem */
}

.form-label {
  display: block;
  font-size: 0.85rem;         /* Redus de la 0.95rem */
  font-weight: 600;
  color: #333;
  margin-bottom: 0.35rem;     /* Redus de la 0.5rem */
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;  /* Redus de la 0.875rem 1rem */
  font-size: 0.9rem;          /* Redus de la 1rem */
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.form-input:focus {
  outline: none;
  border-color: #007bff;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-input::placeholder {
  color: #999;
}

.error-message {
  display: block;
  color: #dc3545;
  font-size: 0.75rem;         /* Redus de la 0.875rem */
  margin-top: 0.35rem;        /* Redus de la 0.5rem */
}

/* ====================
   SUCCESS MESSAGE
   ==================== */
.success-message {
  background-color: #d1fae5;
  color: #065f46;
  padding: 0.65rem 0.85rem;   /* Redus de la 0.875rem 1rem */
  border-radius: 8px;
  margin-bottom: 1rem;        /* Redus de la 1.5rem */
  font-size: 0.85rem;         /* Redus de la 0.95rem */
  border-left: 4px solid #10b981;
}

/* ====================
   FORM OPTIONS
   ==================== */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;        /* Redus de la 1.5rem */
  font-size: 0.8rem;          /* Redus de la 0.9rem */
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #666;
}

.checkbox-input {
  margin-right: 0.4rem;       /* Redus de la 0.5rem */
  cursor: pointer;
  width: 16px;                /* Redus de la 18px */
  height: 16px;
}

.forgot-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* ====================
   BUTTON
   ==================== */
.btn-login {
  width: 100%;
  padding: 0.75rem;           /* Redus de la 1rem */
  font-size: 0.95rem;         /* Redus de la 1.05rem */
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  margin-bottom: 0.75rem;     /* Redus de la 1rem */
}

.btn-login:hover {
  background: linear-gradient(135deg, #0056b3, #003d82);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
  transform: translateY(-2px);
}

.btn-login:active {
  transform: translateY(0);
}

/* ====================
   REGISTER LINK
   ==================== */
.register-link {
  text-align: center;
  font-size: 0.85rem;         /* Redus de la 0.95rem */
  color: #666;
}

.register-link a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.register-link a:hover {
  text-decoration: underline;
}

/* ====================
   RESPONSIVE - MOBIL
   ==================== */
@media (max-width: 992px) {
  .login-wrapper {
    flex-direction: column;   /* Stack vertical pe mobil */
    overflow-y: auto;         /* Permite scroll pe mobil */
  }
  
  /* Imaginea devine mică sau dispare */
  .login-left {
    min-height: 180px;        /* Înălțime redusă */
    min-width: 100%;
  }
  
  .brand-title {
    font-size: 1.75rem;       /* Redus de la 2rem */
  }
  
  .brand-subtitle {
    font-size: 0.9rem;        /* Redus de la 1rem */
  }
  
  /* Formularul ocupă tot ecranul */
  .login-right {
    min-width: 100%;
    padding: 1rem;            /* Redus de la 1.5rem */
    max-height: none;         /* Permite scroll pe mobil */
  }
  
  .login-form-container {
    padding: 1rem;            /* Redus de la 1.5rem */
  }
  
  .logo-mobile {
    display: block;           /* Afișează logo pe mobil */
  }
}

@media (max-width: 576px) {
  /* Pe ecrane foarte mici, ascunde complet imaginea */
  .login-left {
    display: none;
  }
  
  .login-title {
    font-size: 1.35rem;       /* Redus de la 1.75rem */
  }
  
  .form-input {
    padding: 0.6rem;          /* Redus de la 0.75rem */
    font-size: 0.85rem;       /* Redus de la 0.95rem */
  }
  
  .btn-login {
    padding: 0.7rem;          /* Redus de la 0.875rem */
    font-size: 0.9rem;        /* Redus de la 1rem */
  }
}
