:root {
  --primary: #0066CC;
  --primary-hover: #0052a3;
  --secondary: #F2B705;
  --bg-main: #0A0E17;
  --bg-main-light: #121A29;
  --text-white: #F8FAFC;
  --text-light: #CBD5E1;
  --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;
}

body {
  background: linear-gradient(135deg, #0b1b3f 0%, #000e28 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.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;
}

.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;
}

.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;
}

.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;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.alert-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

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

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  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);
  transition: all 0.3s ease;
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 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);
}

.btn-login {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #0052a3 0%, #0066cc 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, 102, 204, 0.25);
}

.btn-login:hover {
  background: linear-gradient(135deg, #00478f 0%, #0052a3 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.3);
}

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

.link-sistem-utama {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.link-sistem-utama:hover {
  text-decoration: underline;
}

.mt-2 { margin-top: 0.75rem; }

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