/* auth.css - Modern Student Login Design */

/* ================ */
/* Color Variables */
/* ================ */
:root {
  --primary: #4361ee;       /* Vibrant blue */
  --primary-light: #4895ef; /* Lighter blue */
  --secondary: #3a0ca3;     /* Deep purple */
  --accent: #f72585;        /* Energetic pink */
  --light: #f8f9fa;         /* Light background */
  --dark: #212529;          /* Dark text */
  --gray: #adb5bd;          /* Gray elements */
  --success: #4cc9f0;       /* Success blue */
  --error: #ef233c;         /* Error red */
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --input-focus: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* ================ */
/* Base Styles */
/* ================ */
body {
  font-family: 'Segoe UI', 'Poppins', -apple-system, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: var(--dark);
  line-height: 1.6;
  background-image: url(photo/ch-background.jpg);
}

/* ================ */
/* Login Container */
/* ================ */
#loginForm {
  background: white;
  width: 100%;
  max-width: 400px;
  padding: 2.9rem;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  animation: fadeIn 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

/* Decorative elements */
#loginForm::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--primary), var(--accent));
}

/* ================ */
/* Form Header */
/* ================ */
.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.login-subtitle {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ================ */
/* Form Elements */
/* ================ */
.input-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.input-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.input-field {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--input-focus);
}

.input-field::placeholder {
  color: var(--gray);
  opacity: 0.8;
}

/* ================ */
/* Submit Button */
/* ================ */
.submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* ================ */
/* Error Message */
/* ================ */
#error {
  color: var(--error);
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  min-height: 1.2rem;
  padding: 0.5rem;
  border-radius: 4px;
  background-color: rgba(239, 35, 60, 0.05);
}

/* ================ */
/* Additional Links */
/* ================ */
.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.login-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.login-link:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* ================ */
/* Animations */
/* ================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================ */
/* Responsive Design */
/* ================ */
@media (max-width: 480px) {
  #loginForm {
    padding: 1.5rem;
  }
  
  .login-title {
    font-size: 1.5rem;
  }
  
  .input-field {
    padding: 0.8rem;
  }
  
  .submit-btn {
    padding: 0.8rem;
  }
}