/* ==========================================================================
   LOGIN — split-screen SaaS layout
   ========================================================================== */

body.login-body {
  min-height: 100vh;
  background: var(--slate-50);
  font-family: var(--font-sans);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
}

/* ---------- BRAND PANEL ---------- */

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 15%, rgba(245, 166, 35, 0.25), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(245, 166, 35, 0.14), transparent 40%),
    linear-gradient(160deg, #3B7A3A 0%, #245023 100%);
  overflow: hidden;
}

.login-brand-content {
  max-width: 460px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 32px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  font-size: 24px;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.brand-title {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
}

.brand-tagline {
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.6;
  color: #F5A623;
  max-width: 380px;
}

.brand-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.brand-points i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(245, 166, 35, 0.18);
  color: #F5A623;
  font-size: 13px;
  flex-shrink: 0;
}

.brand-footer {
  position: relative;
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- FORM PANEL ---------- */

.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--white);
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.login-card-header {
  margin-bottom: 28px;
}

.login-card-header h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--slate-900);
}

.login-card-header p {
  margin: 0;
  font-size: 14px;
  color: var(--slate-500);
}

/* Flash messages */
.flash-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.flash-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  background: var(--info-light);
  color: var(--info-700);
  border: 1px solid rgba(3, 105, 161, 0.16);
}

.flash-message.flash-error {
  background: var(--danger-light);
  color: var(--danger-700);
  border-color: rgba(185, 28, 28, 0.16);
}

.flash-message.flash-success {
  background: var(--success-light);
  color: var(--success-700);
  border-color: rgba(21, 128, 61, 0.16);
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate-700);
}

.field-error {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group i {
  position: absolute;
  left: 14px;
  font-size: 13px;
  color: var(--slate-400);
  pointer-events: none;
}

.input-group input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--slate-900);
  background: var(--slate-50);
  transition: border-color var(--ease), background-color var(--ease), box-shadow var(--ease);
}

.input-group input::placeholder {
  color: var(--slate-400);
}

.input-group input:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: var(--shadow-focus);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--slate-600);
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--blue-600);
}

.reset-link {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: none;
}

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

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--ease), box-shadow var(--ease), filter var(--ease);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 12px 18px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease), background-color var(--ease);
}

.btn-secondary:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
  background: var(--blue-light);
}

.divider {
  position: relative;
  text-align: center;
  margin: 26px 0 18px;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--slate-200);
}

.divider span {
  position: relative;
  padding: 0 12px;
  background: var(--white);
  color: var(--slate-400);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.register-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--slate-200);
}

.register-note {
  margin: -6px 0 2px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--slate-500);
}

.login-panel-footer {
  margin-top: 28px;
  font-size: 12px;
  color: var(--slate-400);
  text-align: center;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 960px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand {
    padding: 40px 32px;
  }

  .brand-points {
    display: none;
  }
}

@media (max-width: 480px) {
  .login-panel {
    padding: 36px 20px;
  }

  .login-brand {
    padding: 32px 24px;
  }

  .brand-title {
    font-size: 28px;
  }
}
