body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0D2B45;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  width: 320px;
  text-align: center;
}

.logo {
  width: 70px;
  margin-bottom: 1rem;
}

.login-container input {
  box-sizing: border-box;
  width: 100%;
  padding: 0.8rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  width: 100%;
  padding: 0.9rem;
  background: #D7263D;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #b61f33;
}

#error {
  color: red;
  margin-top: 10px;
}

.dashboard-body {
  min-height: 100vh;
  height: auto;
  display: block;
  background: #f4f7fb;
  color: #0d2b45;
}

.topbar {
  height: 72px;
  background: #0d2b45;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  box-shadow: 0 8px 24px rgba(13, 43, 69, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.2rem;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logout-btn {
  width: auto;
  padding: 0.75rem 1.2rem;
}

.dashboard {
  padding: 2rem 8%;
}

.panel {
  background: white;
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 16px 40px rgba(13, 43, 69, 0.08);
}

.grid-dashboard {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 1.5rem;
}

.form-panel label {
  display: block;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.form-panel input,
.form-panel select {
  box-sizing: border-box;
  width: 100%;
}

.form-separator {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1.5rem 0;
}

.muted {
  color: #64748b;
}

.school-card {
  border: 1px solid #e5e7eb;
  border-left: 6px solid #d7263d;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: white;
}

.school-status {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(39, 174, 96, 0.12);
  color: #178044;
  font-weight: 800;
}

@media (max-width: 900px) {
  .grid-dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard,
  .topbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.delete-school-btn {
  width: auto;
  padding: 0.65rem 1rem;
  background: #7f1d1d;
  margin-top: 1rem;
}

.delete-school-btn:hover {
  background: #991b1b;
}

.form-panel select {
  width: 100%;
  padding: 0.8rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.forgot-password-btn {
  margin-top: 14px;
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.forgot-password-btn:hover {
  background: transparent;
  color: #0b3551;
}

.forgot-password-btn:focus {
  outline: none;
  background: transparent;
}

.forgot-password-btn:disabled {
  background: transparent;
  color: #9ca3af;
  cursor: not-allowed;
  text-decoration: none;
}

#success {
  margin-top: 16px;
  color: #0b6b3a;
  font-size: 15px;
  text-align: center;
}

#error {
  margin-top: 16px;
  color: #dc143c;
  font-size: 15px;
  text-align: center;
}

/* =========================================================
   ACCIONES DEL PANEL SUPER ADMIN
   ========================================================= */

.admin-actions {
  margin-top: 1.4rem;
}

.admin-action-link {
  display: flex;
  align-items: center;
  gap: 1rem;

  max-width: 520px;
  padding: 1rem 1.2rem;

  border: 1px solid #dbe4ec;
  border-left: 5px solid #d7263d;
  border-radius: 14px;

  background: #f8fafc;
  color: #0d2b45;

  text-decoration: none;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.admin-action-link:hover {
  transform: translateY(-2px);

  border-color: rgba(215, 38, 61, 0.35);

  background: white;

  box-shadow:
    0 12px 28px rgba(13, 43, 69, 0.12);
}

.admin-action-icon {
  flex-shrink: 0;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: rgba(215, 38, 61, 0.1);
  color: #d7263d;

  font-size: 1.35rem;
  font-weight: 900;
}

.admin-action-content {
  flex: 1;

  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-action-content strong {
  color: #0d2b45;

  font-size: 0.98rem;
}

.admin-action-content small {
  color: #64748b;

  font-size: 0.82rem;
  line-height: 1.4;
}

.admin-action-arrow {
  flex-shrink: 0;

  color: #d7263d;

  font-size: 1.35rem;
  font-weight: 800;

  transition: transform 0.2s ease;
}

.admin-action-link:hover .admin-action-arrow {
  transform: translateX(4px);
}


/* =========================================================
   RESPONSIVE DEL ACCESO
   ========================================================= */

@media (max-width: 600px) {

  .admin-action-link {
    max-width: none;

    padding: 1rem;
  }

  .admin-action-icon {
    width: 40px;
    height: 40px;

    font-size: 1.15rem;
  }

  .admin-action-content strong {
    font-size: 0.92rem;
  }

  .admin-action-content small {
    font-size: 0.76rem;
  }

}