body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Tambahkan overlay gelap di background */
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
              url('../images/sekolah.jpg') no-repeat center center/cover;
}

.login-bg {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px; /* jarak dari navbar */
}

/* Overlay gelap */
.login-bg::before {
  content: "";
  position: absolute;
  inset: 0;                 /* shorthand top:0; right:0; bottom:0; left:0 */
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.ios-card {
  /* Gradasi lebih tebal */
  background: linear-gradient(
    135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(230, 230, 255, 0.85) 100%
  );

  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);

  border-radius: 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); /* sedikit lebih tebal */
  border: 1px solid rgba(255, 255, 255, 0.35);

  transition: all 0.3s ease-in-out;
}

.ios-card .form-control {
  font-size: 0.95rem;
  padding: 0.75rem;
}

.ios-card .input-group-text {
  border-radius: 50%;
}

.ios-card button {
  transition: all 0.2s ease-in-out;
}

.ios-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.big-photo {
  max-width: 110%;
  max-height: 850px;
  object-fit: contain;
  position: relative;
  top: -50px; /* geser 20px ke atas, bisa diubah sesuai kebutuhan */
}

.login-form-up {
  margin-top: -80px; /* atur sesuai kebutuhan */
}
/* Mobile (max-width 768px) */
@media (max-width: 768px) {
  .big-photo {
    width: 120%;          /* penuh layar */
    height: auto;         /* tinggi mengikuti proporsi asli */
    object-fit: contain;  /* tetap proporsional, tidak terpotong */
    position: relative;
    top: 0;               /* hilangkan offset */
    margin-bottom: 10px;  /* beri jarak tipis ke form */
    z-index: 0;
  }

  .login-form-up {
    margin-top: -50px;    /* sesuaikan agar menempel tapi tidak terlalu menutupi */
    z-index: 2;
    position: relative;
    padding: 0 15px;
  }
}

.input-group input:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.2);
}

.input-group-text {
  background-color: white !important;
}
.btn-ios {
  padding: 10px 36px; /* ukuran tombol */
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #34c759, #2db84d); /* hijau iOS */
  border: none;
  border-radius: 50px; /* pill shape */
  box-shadow: 0 4px 10px rgba(52, 199, 89, 0.4);
  transition: all 0.25s ease;
}

.btn-ios:hover {
  background: linear-gradient(135deg, #2db84d, #28a745);
  box-shadow: 0 6px 14px rgba(52, 199, 89, 0.5);
}

.btn-ios:active {
  transform: scale(0.97);
}
/* iOS Style Switch */
.ios-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 50px;
}

.ios-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Checked State */
.ios-switch input:checked + .ios-slider {
  background-color: #34c759; /* iOS green */
}

.ios-switch input:checked + .ios-slider:before {
  transform: translateX(20px);
}
/* Container */
.ios-input-group {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  padding: 0 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.2s ease-in-out;
}

/* Ikon */
.ios-input-icon {
  color: #9ca3af; /* abu-abu iOS */
  font-size: 1.1rem;
  margin-right: 8px;
  display: flex;
  align-items: center;
}

/* Input */
.ios-input {
  border: none;
  outline: none;
  flex: 1;
  padding: 12px 0;
  font-size: 1rem;
  background: transparent;
  color: #333;
}

/* Placeholder */
.ios-input::placeholder {
  color: #b0b0b0;
}

/* Fokus efek lembut */
.ios-input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.25);
}
/* Lupa Password gaya teks iOS */
.text-ios-link {
    color: #007aff;           /* Biru iOS */
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s, background 0.2s;
    padding: 4px 8px;
    border-radius: 12px;      /* efek bulat saat hover */
}

.text-ios-link:hover {
    background: rgba(0, 122, 255, 0.1); /* highlight lembut saat hover */
    color: #005ecb;                       /* biru lebih gelap */
    text-decoration: none;
}
/* Font system mirip iOS */
.ios17-modal {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: rgba(255,255,255,0.95); /* semi translucent */
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  backdrop-filter: blur(10px);
}

/* Teks muted iOS */
.ios17-text-muted {
  color: #6e6e73;
  font-weight: 400;
}

/* Input iOS */
.ios17-input {
  border-radius: 15px;
  border: 1px solid #d1d1d6;
  padding: 12px 15px;
  font-size: 15px;
  color: #000;
  background: #f2f2f7;
  transition: all 0.2s ease;
}

.ios17-input:focus {
  outline: none;
  border-color: #007aff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,122,255,0.2);
}

/* Tombol iOS 17 */
.btn-ios17 {
  background: #007aff;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border-radius: 20px;
  padding: 12px;
  border: none;
  transition: background 0.2s ease;
}

.btn-ios17:hover {
  background: #005bb5;
  color: #fff;
}

.btn-close {
  filter: brightness(0.4);
}
.ios-popup {
  border-radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 1.5rem;
  max-width: 400px;
}

.ios-title {
  font-size: 18px;
  font-weight: 600;
  color: #111;
}

.ios-html {
  font-size: 15px;
  color: #333;
  margin-top: 0.5rem;
}

.ios-confirm-button,
.ios-cancel-button {
  font-size: 16px;
  padding: 8px 18px;
  border-radius: 12px;
  border: none;
  margin: 4px;
  min-width: 90px;
  transition: background-color 0.2s;
}

.ios-confirm-button {
  background-color: #007aff;
  color: white;
}

.ios-confirm-button:hover {
  background-color: #005ed9;
}

.ios-cancel-button {
  background-color: #e0e0e0;
  color: #333;
}

.ios-cancel-button:hover {
  background-color: #c7c7c7;
}