.teacher-auth-page {
  background-color: #f8fafc;
  background-image: radial-gradient(#cbd5e1 0.5px, transparent 0.5px);
  background-size: 24px 24px; /* Subtle grid pattern */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Auth Navigation */
.auth-nav {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.back-home {
  text-decoration: none;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  transition: 0.3s;
}
.back-home:hover {
  color: #d4af37;
}
.nav-brand {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  color: #0f172a;
}

/* Auth Wrapper */
.auth-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-container {
  width: 100%;
  max-width: 400px;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}
.portal-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #94a3b8;
}
.auth-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  margin: 10px 0;
  color: #0f172a;
}
.auth-header p {
  font-size: 0.85rem;
  color: #64748b;
}
.gold-text {
  color: #d4af37;
  font-style: italic;
}

/* The Card */
.auth-card {
  background: #fff;
  padding: 40px;
  border-radius: 4px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.input-icon {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  padding: 0 15px;
  background: #f8fafc;
  transition: 0.3s;
}
.input-icon:focus-within {
  border-color: #d4af37;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}
.input-icon i {
  color: #cbd5e1;
  width: 20px;
}
.input-icon input {
  border: none;
  outline: none;
  padding: 14px;
  width: 100%;
  background: transparent;
}

.btn-auth {
  width: 100%;
  background: #0f172a;
  color: #fff;
  padding: 16px;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}
.btn-auth:hover {
  background: #d4af37;
}

.error-msg {
  color: #ef4444;
  font-size: 0.8rem;
  text-align: center;
  margin-top: 15px;
  font-weight: 600;
}

/* Footer */
.auth-footer {
  padding: 30px;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
}
.auth-footer p {
  margin: 5px 0;
}

.loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
