/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  display: block;
  background: #f0fdfa;
}

/* ===== MAIN WRAPPER ===== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
}

/* ===== LEFT PANEL ===== */
.login-panel-left {
  width: 45%;
  background: linear-gradient(160deg, #134e4a 0%, #0d9488 55%, #0891b2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 3rem 2rem;
}

.login-panel-left .deco-circle-1 {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -120px;
  right: -120px;
  pointer-events: none;
}

.login-panel-left .deco-circle-2 {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

.login-panel-left .deco-circle-3 {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  top: 40%;
  left: 10%;
  pointer-events: none;
}

.panel-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 380px;
  width: 100%;
}

.panel-logo {
  width: 200px;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.25));
}

.panel-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.3px;
}

.panel-subtitle {
  font-size: 0.92rem;
  opacity: 0.82;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

/* ===== FEATURE CARDS ===== */
.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 0.6rem;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  cursor: default;
}

.features-list li:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(4px);
}

.features-list .feat-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ===== RIGHT PANEL ===== */
.login-panel-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  padding: 3rem 1.5rem;
  position: relative;
  overflow-y: auto;
  min-height: 100vh;
}

.login-top-bar {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 9px;
  background: white;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.lang-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* ===== FORM CARD ===== */
.form-card {
  background: white;
  border-radius: 22px;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 430px;
}

.form-card--wide {
  max-width: 600px;
}

.form-card-header {
  margin-bottom: 1.75rem;
}

.form-card-header h1 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #134e4a;
  margin-bottom: 0.3rem;
  letter-spacing: -0.4px;
}

.form-card-header p {
  color: #6b7280;
  font-size: 0.88rem;
  margin: 0;
}

/* Form fields */
.form-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
  letter-spacing: 0.1px;
}

.form-control {
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.93rem;
  border: 1.5px solid #e5e7eb;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-control:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3.5px rgba(13, 148, 136, 0.13);
  background: #ffffff;
  outline: none;
}

.input-group .form-control {
  border-right: none;
  border-radius: 10px 0 0 10px;
}

.input-group .btn-outline-secondary {
  border: 1.5px solid #e5e7eb;
  border-left: none;
  border-radius: 0 10px 10px 0;
  background: #fafafa;
  color: #9ca3af;
  padding: 0 0.85rem;
  transition: background 0.15s, color 0.15s;
}

.input-group .btn-outline-secondary:hover {
  background: #f3f4f6;
  color: #374151;
}

.input-group:focus-within .btn-outline-secondary {
  border-color: #0d9488;
  box-shadow: 3.5px 0 0 3.5px rgba(13, 148, 136, 0.13) inset;
}

/* Sign in button */
.btn-signin {
  background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
  border: none;
  border-radius: 11px;
  padding: 0.78rem;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: white;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 5px 18px rgba(13, 148, 136, 0.38);
  width: 100%;
  margin-top: 0.25rem;
}

.btn-signin:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.48);
  filter: brightness(1.06);
  color: white;
}

.btn-signin:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

/* Links */
.login-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.login-links a {
  color: #0d9488;
  font-size: 0.83rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.login-links a:hover {
  color: #0f766e;
  text-decoration: underline;
}

/* Divider */
.form-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
  margin: 1.4rem 0;
}

/* Remember me */
.remember-check .form-check-label {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Alerts */
.alert-danger {
  border-radius: 10px;
  font-size: 0.85rem;
  padding: 0.6rem 0.9rem;
  border: none;
  background: #fef2f2;
  color: #b91c1c;
}

.alert-danger p {
  margin: 0;
}

/* Footer */
.login-footer {
  margin-top: 2rem;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .login-panel-left {
    width: 40%;
  }
}

@media (max-width: 768px) {
  .login-wrapper {
    flex-direction: column;
  }

  .login-panel-left {
    width: 100%;
    padding: 2.5rem 1.5rem;
    min-height: auto;
  }

  .panel-logo {
    width: 150px;
  }

  .panel-title {
    font-size: 1.2rem;
  }

  .features-list {
    display: none;
  }

  .panel-subtitle {
    margin-bottom: 0.5rem;
  }

  .login-panel-right {
    padding: 1.75rem 1rem 2rem;
  }

  .form-card {
    padding: 1.75rem 1.5rem;
    border-radius: 18px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.07);
  }

  .login-top-bar {
    position: static;
    justify-content: flex-end;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 430px;
  }
}

