:root {
  --primary: #005B2B;
  --primary-hover: #004521;
  --secondary: #F2B705;
  /* Warna latar luar & elemen kiri */
  --bg-main: #0A0E17;
  --bg-main-light: #121A29;
  --bg-accent-green: rgba(0, 91, 43, 0.08);
  --bg-accent-gold: rgba(242, 183, 5, 0.06);
  --text-white: #F8FAFC;
  --text-light: #CBD5E1;
  /* Warna sisi kanan */
  --light-right: #FFFFFF;
  --text-dark: #0F172A;
  --gray-100: #F8FAFC;
  --gray-300: #CBD5E1;
  --gray-500: #64748B;
  --gray-700: #1E293B;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Latar belakang luar: tidak polos, ada variasi warna halus */
body {
    background: linear-gradient(135deg, #0b1b3f 0%, #000e28 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Kartu login */
.login-container {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
    box-shadow: 
        0 35px 80px rgba(0, 0, 0, 0.4),
        0 15px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden;
    position: relative;
}

/* Bagian kiri: sudah diperbaiki agar tidak ada warna putih di pojok */
.school-info {
    background: linear-gradient(145deg, var(--bg-main) 0%, var(--bg-main-light) 100%);
    color: var(--text-white);
    padding: 3.5rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Bentuk lingkaran dekoratif: ukuran & posisi disesuaikan agar tidak keluar */
.logo-wrapper {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
    z-index: 2;
}

.logo-sekolah {
    width: 220px;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.school-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.school-info p.desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 320px;
  margin: 0 auto;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.copyright {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #94A3B8;
  opacity: 0.8;
  position: relative;
  z-index: 2;
}

/* ✅ Bagian kanan */
.login-form-section {
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--light-right);
  position: relative;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h3 {
  font-size: 1.8rem;
  color: #001439;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.form-header p {
  color: #475569;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700); /* ✅ Label lebih tegas */
  margin-bottom: 0.5rem;
}

.input-wrapper {
  position: relative;
  width: 100%;
  display: block;
}

.input-wrapper i.fa-user,
.input-wrapper i.fa-lock {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 1rem;
  z-index: 1;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 1rem 2.8rem 1rem 2.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--gray-100);
  color: var(--text-dark); /* ✅ Teks input lebih jelas */
  transition: all 0.3s ease;
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 91, 43, 0.12);
  background: white;
}

.toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.4rem;
  z-index: 2;
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: var(--primary);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.2rem 0 1.8rem;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gray-700);
  cursor: pointer;
  user-select: none;
}

.forgot-pass {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-pass:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #00180b 0%, #004520 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 91, 43, 0.25);
}

.btn-login:hover {
  background: linear-gradient(135deg, #00401e 0%, #004722 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 91, 43, 0.3);
}

.contact-info {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Responsif untuk HP */
@media (max-width: 767px) {
  .login-container {
    grid-template-columns: 1fr;
  }
  .school-info {
    padding: 2.5rem 2rem;
  }
  .login-form-section {
    padding: 2.5rem 2rem;
  }
}