/* login.css - FIXED VISUALS */

:root {
  --primary: #8b0000; /* School Red */
  --secondary: #d4af37; /* Gold */
  --text-dark: #333;
  --text-light: #666;
  --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: var(--bg-gradient);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Important: Prevents scrollbars from particles */
  position: relative;
}

/* --- BACKGROUND PARTICLES (FIXED) --- */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(139, 0, 0, 0.1); /* Subtle Red */
  border-radius: 50%;
  pointer-events: none;
  animation: floatUp linear infinite;
}

/* Defines the movement of the particles */
@keyframes floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* --- FLOATING DECORATIONS (FIXED) --- */
.floating-decoration {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  filter: blur(50px);
}

.decoration-1 {
  width: 300px;
  height: 300px;
  background: rgba(139, 0, 0, 0.15);
  top: -50px;
  right: -50px;
}

.decoration-2 {
  width: 200px;
  height: 200px;
  background: rgba(212, 175, 55, 0.15);
  bottom: -50px;
  left: -50px;
}

/* --- CONTAINER STYLES --- */
.container {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  display: flex;
  max-width: 900px;
  width: 90%;
  overflow: hidden;
}

.image-section {
  flex: 1;
  background: linear-gradient(135deg, var(--primary) 0%, #5e0000 100%);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.image-section .logo img {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 50%;
  padding: 5px;
  margin-top: 20px;
  object-fit: contain;
}

.university-info h1 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.login-section {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.input-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.submit-btn:hover:not(:disabled) {
  background: #5e0000;
}

/* Error Messages */
.error-message {
  background: #ffebee;
  color: #c62828;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  display: none;
  font-size: 0.9rem;
  border-left: 4px solid #c62828;
}

.show {
  display: block;
}
