@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

body {
  background-color: #f4f6f8;
}

.login-main {
  min-height: 80vh; /* Centers vertically */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-container {
  width: 100%;
  max-width: 450px;
}

/* Alert Box */
.alert-box {
  background: #ffebee;
  color: #c62828;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid #ef9a9a;
  font-weight: 500;
}

/* Card Styling */
.login-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Tabs */
.login-tabs {
  display: flex;
  background: #eee;
}

.tab-btn {
  flex: 1;
  padding: 15px;
  border: none;
  background: transparent;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #777;
  cursor: pointer;
  transition: 0.3s;
}

.tab-btn.active {
  background: white;
  color: #e65100; /* Primary Color */
  border-top: 3px solid #e65100;
}

/* Forms */
.form-section {
  display: none; /* Hidden by default */
  padding: 40px 30px;
}

.form-section.active {
  display: block; /* Show when active */
  animation: fadeIn 0.4s ease;
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 5px;
}

.form-header p {
  color: #666;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #e65100;
}

/* Buttons */
.btn-login {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: white;
  transition: 0.3s;
}

.btn-login.school {
  background-color: #e65100;
}

.btn-login.school:hover {
  background-color: #bf4300;
}

.btn-login.admin {
  background-color: #333;
}

.btn-login.admin:hover {
  background-color: #000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
