body {
    margin: 0;
    padding-top: 20px;
    padding-bottom: 20px;
    font-family: Arial, sans-serif;
    background-image: url("../picture/sekolah.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* FIX POSISI TENGAH */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Tambahan shadow halus agar card terlihat */
    backdrop-filter: blur(0px);
    min-height: 100vh;
}

.login-container {
    background: rgba(255, 255, 255, 0.96);
    width: 100%;
    max-width: 360px;
    padding: 28px 25px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    border-radius: 14px;
    margin: auto;

    /* FIX TAMPILAN AGAR TIDAK MELEDAK */
    box-sizing: border-box;
}

.login-container img {
    display: block;
    margin: 0 auto 20px auto;
    width: 120px;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
}

label {
    font-size: 14px;
    font-weight: bold;
}

input[type="email"],
input[type="text"],
input[type="number"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: 0.3s;
    margin-bottom: 14px;
}

input:focus {
    border-color: #007bff;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: 0.3s;
}

textarea:focus {
    border-color: #007bff;
    outline: none;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 26px;
    height: 26px;
    opacity: 0.7;
}

.toggle-eye:hover {
    opacity: 1;
}

.eye-icon {
    position: absolute;
    width: 26px;
    height: 26px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.eye-open {
    opacity: 0;
    transform: rotate(-10deg);
}

.show-password .eye-open {
    opacity: 1;
    transform: rotate(0deg);
}

.show-password .eye-closed {
    opacity: 0;
    transform: rotate(10deg);
}

.tombol {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #eacf03ff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 8px;
}

.tombol:hover {
    background: #796b03ff;
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    background: #007bff;
    color: #fff;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.25s;
    margin-top: 5px;
}

button:hover {
    background: #0056b3;
}

#btnKembali {
    display: inline-block;
    padding: 10px 18px;
    background: #2563eb; /* biru elegan */
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s ease;
    box-shadow: 0px 3px 6px rgba(0,0,0,0.15);
}

#btnKembali i {
    margin-right: 6px;
}

#btnKembali:hover {
    background: #1e50c3; /* biru lebih gelap */
    transform: translateY(-2px);
    box-shadow: 0px 5px 10px rgba(0,0,0,0.2);
}

.register-link {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
}

.register-link a {
    color: #007bff;
    text-decoration: none;
}

.date-container {
    position: relative;
    width: 100%;
}

#tanggalLahir {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
}

.calendar-icon {
    position: absolute;
    right: 10px;
    top: 9px;
    cursor: pointer;
}

.calendar-box {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    padding: 15px;
    display: none;
    z-index: 100;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calendar-header select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.day {
    padding: 8px 0;
    cursor: pointer;
    border-radius: 6px;
}

.day:hover {
    background: #007bff;
    color: white;
}

.day-name {
    font-weight: bold;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 480px) {
    body {
        padding: 15px;
        align-items: flex-start;
        padding-top: 40px;
        height: auto;
    }

    .login-container {
        width: 100%;
        padding: 22px 20px;
        border-radius: 12px;
    }
}

.loading-dots::after {
    content: "";
    animation: dots 1.2s steps(4, end) infinite;
}

.select-wrapper {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
}

/* gaya dasar select */
.select-wrapper .form-control {
  -webkit-appearance: none; /* hapus default arrow di iOS/Safari */
  -moz-appearance: none;    /* hapus default arrow di Firefox */
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 44px 12px 14px; /* beri ruang kanan untuk arrow */
  font-size: 15px;
  line-height: 1.3;
  border: 1px solid #d0d6dd;
  border-radius: 8px;
  background-color: #ffffff;
  background-image: none;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .06s ease;
  cursor: pointer;
}

/* hover & fokus */
.select-wrapper .form-control:hover {
  border-color: #9ab3ff;
  transform: translateY(-1px);
}

.select-wrapper .form-control:focus {
  border-color: #4f7cff;
  box-shadow: 0 6px 18px rgba(79,124,255,0.12);
}

/* placeholder option tampak pudar */
.select-wrapper .form-control option[value=""] {
  color: #8c96a3;
}

/* custom arrow (CSS pseudo-element) */
.select-wrapper::after {
  content: "";
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: radial-gradient(circle at 50% 60%, transparent 0 30%, rgba(0,0,0,0.06) 31%); /* subtle */
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M7 10l5 5 5-5z"/></svg>') center/contain no-repeat;
  opacity: .95;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.06));
}

/* responsive: lebih besar tap target di mobile */
@media (max-width: 480px) {
  .select-wrapper .form-control {
    padding: 14px 48px 14px 14px;
    font-size: 16px;
  }
  .select-wrapper::after {
    right: 12px;
    width: 20px;
    height: 20px;
  }
}

/* jika ingin tampilan 'ghost' (transparent) digunakan bersama kelas tambahan */
.select-ghost .form-control {
  background: transparent;
  border: 1px dashed rgba(0,0,0,0.08);
  color: #222;
}

/* optional: gaya error */
.select-wrapper.error .form-control {
  border-color: #e05353;
  box-shadow: 0 6px 18px rgba(224,83,83,0.08);
}

@keyframes dots {
    0% {
        content: "";
    }

    25% {
        content: ".";
    }

    50% {
        content: "..";
    }

    75% {
        content: "...";
    }

    100% {
        content: "";
    }
}
