/* Modern Login Page Styles — Siftstack-inspired dark theme with green */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0b0f19;
  color: #f1f5f9;
  min-height: 100vh;
  overflow: hidden;
}

/* ===== Layout ===== */
.login-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ===== Left Panel - Dark Gradient Background ===== */
.preview-panel {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  background: linear-gradient(135deg, #0b0f19 0%, #0f172a 25%, #111827 50%, #0b0f19 100%);
}

.preview-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(16, 185, 129, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  z-index: 0;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(11, 15, 25, 0.4) 60%,
    rgba(11, 15, 25, 0.85) 100%
  );
  z-index: 1;
}

.preview-content {
  position: relative;
  z-index: 2;
  padding: 60px;
  max-width: 620px;
}

.preview-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 100px;
  color: #10b981;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.preview-title {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.preview-subtitle {
  font-size: 16px;
  color: rgba(241, 245, 249, 0.5);
  line-height: 1.7;
  margin-bottom: 32px;
}

.preview-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(241, 245, 249, 0.5);
  font-size: 13px;
  line-height: 1.5;
}

.feature-item strong {
  color: rgba(241, 245, 249, 0.85);
  font-size: 14px;
  font-weight: 600;
}

.feature-item i {
  color: #10b981;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ===== Right Panel - Dark Login Form ===== */
.form-panel {
  width: 520px;
  min-width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  padding: 40px;
  border-left: 1px solid rgba(148,163,184,0.12);
}

.form-wrapper {
  width: 100%;
  max-width: 380px;
}

/* Logo */
.logo-container {
  margin-bottom: 40px;
}

.logo {
  height: 48px;
  width: auto;
}

/* Form header */
.form-header {
  margin-bottom: 32px;
}

.form-header h2 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.form-header p {
  font-size: 15px;
  color: #94a3b8;
  margin: 0;
}

/* Alert banner */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  color: #ef4444;
  font-size: 14px;
  margin-bottom: 24px;
}

.alert-banner i {
  font-size: 16px;
  flex-shrink: 0;
}

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

.input-group-modern label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 6px;
}

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

.input-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  font-size: 15px;
  pointer-events: none;
  transition: color 0.2s;
}

.modern-input {
  width: 100%;
  height: 48px;
  padding: 0 44px;
  background: #0f172a;
  border: 1.5px solid rgba(148,163,184,0.15);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #f1f5f9;
  transition: all 0.2s ease;
  outline: none;
}

.modern-input::placeholder {
  color: #64748b;
}

.modern-input:hover {
  border-color: rgba(148,163,184,0.25);
  background: #0f172a;
}

.modern-input:focus {
  border-color: #10b981;
  background: #0f172a;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.modern-input:focus ~ .input-icon,
.input-wrapper:focus-within .input-icon {
  color: #10b981;
}

/* Password toggle */
.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 15px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.toggle-password:hover {
  color: #94a3b8;
}

/* Form options row */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Custom checkbox */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}

.custom-checkbox input {
  display: none;
}

.checkbox-visual {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(148,163,184,0.25);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  background: transparent;
}

.custom-checkbox input:checked + .checkbox-visual {
  background: #10b981;
  border-color: #10b981;
}

.custom-checkbox input:checked + .checkbox-visual::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -1px;
}

.checkbox-label {
  color: #94a3b8;
}

.forgot-link {
  font-size: 14px;
  color: #10b981;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: #059669;
}

/* Login button */
.btn-login {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  margin-top: 4px;
}

.btn-login:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-login i {
  font-size: 14px;
  transition: transform 0.2s;
}

.btn-login:hover i {
  transform: translateX(3px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .preview-panel {
    display: none;
  }

  .login-container {
    justify-content: center;
    background: linear-gradient(135deg, #0b0f19 0%, #0f172a 25%, #111827 50%, #0b0f19 100%);
  }

  .form-panel {
    width: 100%;
    min-width: unset;
    max-width: 480px;
    background: rgba(17, 24, 39, 0.97);
    border-radius: 16px;
    margin: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-left: none;
    border: 1px solid rgba(148,163,184,0.12);
  }
}

@media (max-width: 576px) {
  .form-panel {
    padding: 24px;
  }

  .form-wrapper {
    max-width: 100%;
  }

  .form-header h2 {
    font-size: 22px;
  }

  .preview-features {
    flex-direction: column;
    gap: 12px;
  }
}
