/* ===================================================================
   MODERN & PROFESSIONAL LOGIN STYLES
   =================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500&display=swap');

/* CSS Variables for a Clean & Consistent Theme */
:root {
  /* Brand Colors */
  --primary-color: #4F46E5; /* A modern, vibrant indigo */
  --primary-hover: #4338CA;
  --primary-focus: rgba(79, 70, 229, 0.2);

  /* Neutral Colors */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;

  /* Status Colors */
  --success-bg: #D1FAE5;
  --success-text: #065F46;
  --error-bg: #FEE2E2;
  --error-text: #991B1B;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-ease: all 0.2s ease-in-out;
}

/* Base & Body Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

/* Main Container for the Form */
.form-container {
  width: 100%;
  max-width: 450px;
  background: var(--white);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}

/* Logo & Header */
.form-header {
  margin-bottom: 2rem;
}

.logo {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}

.form-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gray-900);
}

.form-header p {
  color: var(--gray-500);
  margin-top: 0.5rem;
}

/* Form Group Styling */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.input-wrapper {
  position: relative;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  background-color: var(--white);
  color: var(--gray-900);
  transition: var(--transition-ease);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-focus);
}

/* Password Visibility Toggle */
.password-toggle {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--gray-500);
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background-color: var(--primary-color);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: var(--transition-ease);
  box-shadow: var(--shadow-md);
}

.btn-submit:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-submit:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-focus);
}

/* Bottom Link (e.g., "Don't have an account?") */
.bottom-link {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.bottom-link a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-ease);
}

.bottom-link a:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

/* Error & Success Messages */
.message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  animation: slideDown 0.3s ease-out;
}

.error {
  background-color: var(--error-bg);
  color: var(--error-text);
}

.success {
  background-color: var(--success-bg);
  color: var(--success-text);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 480px) {
  body {
    padding: 1rem;
  }
  .form-container {
    padding: 2rem;
  }
  .form-header h2 {
    font-size: 1.5rem;
  }
}
