.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-main);
  padding: 1.5rem;
}

.login-container {
  display: flex;
  flex-wrap: wrap;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 1000px;
  width: 100%;
}

/* Εικόνα & welcome */
.login-image-section {
  flex: 1 1 50%;
  
  color: var(--text-main);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.login-image-section .logo {
  max-width: 140px;
  margin-bottom: 1rem;
}

.office-img {
  margin-top: 1.5rem;
  max-width: 90%;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
}

.intro-text h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.intro-text p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Φόρμα */
.login-form-section {
  flex: 1 1 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-form {
  width: 100%;
  max-width: 400px;
}

.login-form .form-label {
  font-weight: 500;
}

.login-form .form-control {
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.95rem;
}

.login-form .btn {
  padding: 0.65rem;
  font-weight: 600;
  border-radius: 0.5rem;
}

.forgot-link {
  font-size: 0.9rem;
  color: var(--primary);
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column-reverse;
  }

  .login-image-section,
  .login-form-section {
    flex: 1 1 100%;
    padding: 1.5rem;
  }

  .intro-text h2 {
    font-size: 1.3rem;
  }
}


.password-wrapper {
  position: relative;
}

/* Δώσε χώρο δεξιά στο input ώστε να μην επικαλύπτεται το icon */
.password-wrapper .form-control {
  padding-right: 2.75rem; /* ≈ 44px tap target */
}

/* Το “μάτι” πάντα στο κέντρο κατακόρυφα, δεξιά */
.toggle-password {
  position: absolute;
  right: .75rem;
  bottom: 0;               /* μαζί με top:0 ⇒ κέντρο με place-items */
  display: grid;
  place-items: center;
  width: 2rem;
  height: 50%;
  cursor: pointer;
  color: #ffffff;
  pointer-events: auto;
  z-index: 5;
}

.toggle-password:hover,
.toggle-password:focus {
  color: var(--primary, #0d6efd);
  outline: none;
}

/* Προαιρετικά: μεγαλύτερο tap target σε touch */
@media (pointer: coarse) {
  .toggle-password { width: 2.5rem; right: .5rem; }
}

