* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Xevnox brand: black, red, white */
  --brand-black: #0a0a0a;
  --brand-dark: #1a1a1a;
  --brand-red: #dc2626;      /* bold red */
  --brand-red-hover: #b91c1c;
  --brand-white: #ffffff;
  --brand-off-white: #f5f5f5;
  --border-light: #e0e0e0;
  --text-muted: #6b6b6b;
  --shadow-card: 0 20px 35px -10px rgba(0,0,0,0.25), 0 6px 12px rgba(0,0,0,0.1);
  --radius-lg: 1.5rem;
  --radius-md: 0.9rem;
  --radius-sm: 0.7rem;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Open Sans', sans-serif;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.8rem;
  margin: 0;
  color: var(--brand-black);
}

/* Two‑column container */
.auth-container {
  width: 100%;
  max-width: 1060px;
  background-color: var(--brand-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ----- LEFT PANEL : brand summary (black + red accents) ----- */
.brand-panel {
  background: var(--brand-black);
  color: white;
  padding: 3.2rem 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* subtle red geometric glow */
.brand-panel::after {
  content: "";
  position: absolute;
  bottom: -10%;
  right: -15%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(220,38,38,0.3) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.brand-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: white;
}

.brand-logo i {
  font-size: 2.2rem;
  color: var(--brand-red);
  filter: drop-shadow(0 4px 8px rgba(220,38,38,0.5));
}

.brand-headline {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.2;
  color: white;
}

.brand-highlight {
  color: #f87171; /* lighter red for contrast */
  border-bottom: 3px solid var(--brand-red);
}

.brand-summary {
  font-size: 1rem;
  line-height: 1.7;
  color: #d1d1d1;
  margin-top: 0.3rem;
}

.feature-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  color: #e5e5e5;
}

.feature-icon {
  background: rgba(220,38,38,0.18);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-text strong {
  color: white;
  font-weight: 600;
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.feature-text span {
  font-size: 0.85rem;
  color: #a3a3a3;
  line-height: 1.4;
}

.brand-footer-note {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: #737373;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ----- RIGHT PANEL : login form (white with red/black elements) ----- */
.form-panel {
  background: var(--brand-white);
  padding: 3.2rem 2.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-header {
  margin-bottom: 2.2rem;
}

.auth-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-black);
  letter-spacing: -0.4px;
}

.auth-header p {
  color: #4b4b4b;
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

.text-danger {
  color: #b91c1c;
  font-weight: 500;
  font-size: 0.9rem;
  background: #fee2e2;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  display: none;
  margin-bottom: 1.3rem;
  border-left: 4px solid var(--brand-red);
}

.text-success {
  color: #166534;
  font-weight: 500;
  font-size: 0.9rem;
  background: #dcfce7;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  display: none;
  margin-bottom: 1.3rem;
  border-left: 4px solid #16a34a;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-black);
  margin-left: 0.2rem;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #d4d4d4;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: #fafafa;
  transition: 0.2s ease;
  outline: none;
  color: var(--brand-black);
}

.form-input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.15);
  background: white;
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap .form-input {
  padding-right: 3rem;
}

.eye-btn {
  position: absolute;
  right: 0.8rem;
  background: transparent;
  border: none;
  color: #6b6b6b;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.3rem;
  border-radius: 50%;
  transition: 0.2s;
  display: flex;
  align-items: center;
}

.eye-btn:hover {
  color: var(--brand-red);
  background: #f2f2f2;
}

.forgot-link {
  font-size: 0.85rem;
  color: var(--brand-red);
  text-decoration: none;
  font-weight: 600;
  margin-top: 0.3rem;
  display: inline-block;
  width: fit-content;
  transition: 0.2s;
}

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

.btn {
  background: var(--brand-black);
  border: none;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.3px;
  margin-top: 0.4rem;
  background: linear-gradient(145deg, #1f1f1f 0%, #0a0a0a 100%);
  box-shadow: 0 8px 14px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.05);
}

.btn:hover {
  background: #1a1a1a;
  box-shadow: 0 10px 18px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

.btn i {
  font-size: 0.9rem;
  color: #f87171;
}

/* Responsive */
@media (max-width: 700px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .brand-panel {
    padding: 2.5rem 2rem;
    text-align: center;
    align-items: center;
  }
  .brand-summary {
    max-width: 100%;
  }
  .feature-list {
    align-items: center;
  }
  .feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .brand-footer-note {
    justify-content: center;
  }
}
