/*
 * File: public\css\school\admin.css
 * Purpose: Defines presentation styles for the admin interface.
 */

:root {
  --blue: #282f7f;
  --light-blue: #4279bc;
  --grey: #eaf0fa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #2c3e50;
  background: #fff;
}

/* =============================
   HERO / BACKGROUND SECTION
============================= */
.admin-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url("../../images/Prayer.jpg") no-repeat center center / cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

.admin-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 42, 87, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =============================
   LOGIN CARD
============================= */
.login-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px 60px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  animation: fadeIn 1.2s ease;
}

.admin-overlay .login-card h1 {
  font-size: 42px;
  color: #282f7f;
  margin-bottom: 10px;
  font-weight: 800;
  text-shadow: none;
}

.login-card p {
  font-size: 16px;
  color: #444;
  margin-bottom: 25px;
}

/* =============================
   FORM STYLING
============================= */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-form input {
  padding: 14px;
  font-size: 16px;
  border: 2px solid var(--light-blue);
  border-radius: 8px;
  outline: none;
  transition: all 0.25s ease;
}

.login-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 6px rgba(40, 47, 127, 0.3);
}

.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.password-toggle__icon {
  position: relative;
  width: 19px;
  height: 12px;
  border: 2px solid #000;
  border-radius: 999px;
  display: inline-block;
}

.password-toggle__icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.password-toggle.is-visible .password-toggle__icon::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  width: 22px;
  height: 2px;
  background: #000;
  transform: rotate(-28deg);
  transform-origin: center;
}

.login-form button[type="submit"] {
  background: var(--blue);
  color: white;
  font-size: 18px;
  font-weight: 600;
  padding: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.login-form button[type="submit"]:hover {
  background: var(--light-blue);
}

/* =============================
   BACK LINK
============================= */
.back-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--light-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
}

.back-link:hover {
  color: var(--blue);
}

/* =============================
   ANIMATION
============================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 700px) {
  .login-card {
    width: 85%;
    padding: 30px 25px;
  }

  .login-card h1 {
    font-size: 32px;
  }
}

