:root {
  --maroon-primary: #800000;
  --maroon-dark: #5c0000;
  --maroon-light: #9e1b1b;
  --text-gray: #6c757d;
  --bg-light: #f8f9fa;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
  height: 100vh;
}

/* Layout Split-Screen */
.auth-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Bagian Kiri (Hero Overlay Maroon) */
.hero-section {
  flex: 1;
  background: linear-gradient(rgba(80, 0, 0, 0.85), rgba(40, 0, 0, 0.9)), 
              url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?auto=format&fit=crop&q=80') center/cover no-repeat;
  color: #ffffff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-header img {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 8px;
  padding: 5px;
}

.brand-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-body h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-body p {
  font-size: 1rem;
  color: #e0e0e0;
  max-width: 480px;
}

.hero-footer {
  font-size: 0.85rem;
  color: #cccccc;
}

/* Bagian Kanan (Formulir) */
.form-section {
  flex: 1;
  background: #ffffff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form-wrapper {
  width: 100%;
  max-width: 400px;
}

.back-link {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2rem;
}

.back-link:hover {
  color: var(--maroon-primary);
}

.form-header h2 {
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.4rem;
  display: block;
}

.input-group-text {
  background: #f1f3f5;
  border-right: none;
  color: var(--text-gray);
}

.form-control {
  border-left: none;
  background: #f1f3f5;
  padding: 0.75rem;
}

.form-control:focus {
  background: #ffffff;
  box-shadow: none;
  border-color: var(--maroon-primary);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.btn-maroon {
  background-color: var(--maroon-primary);
  color: white;
  padding: 0.75rem;
  font-weight: 600;
  width: 100%;
  border: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-maroon:hover {
  background-color: var(--maroon-dark);
  color: white;
}

.auth-redirect {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.auth-redirect a {
  color: var(--maroon-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-redirect a:hover {
  text-decoration: underline;
}

/* Responsif untuk Layar Kecil / HP */
@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
  }
  .hero-section {
    display: none;
  }
  .form-section {
    padding: 2rem 1.5rem;
  }
}