/* Redesign Authentication Styles */

:root {
  --bg-gradient-start: #2E004F;
  --bg-gradient-end: #8E0E56;
  --card-bg: #FFFFFF;
  --primary-gradient-start: #D0006F;
  --primary-gradient-end: #7B2CBF;
  --text-dark: #222222;
  --text-muted: #6B7280;
  --input-border: #E5E7EB;
  --input-focus-border: #7C3AED;
  --link-color: #7C3AED;
  --shadow: rgba(0, 0, 0, 0.08);
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 25px var(--shadow);
  overflow: hidden;
  animation: fadeIn 0.5s ease;
  padding: 2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-icon {
  text-align: center;
  margin-bottom: 1.5rem;
}

.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: white;
  font-size: 2rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-dark);
}

.auth-subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-body {
  /* No padding here, handled by card */
}

.input-group {
  position: relative;
  margin-bottom: 1rem;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  z-index: 1;
}

.auth-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.auth-input:focus {
  outline: none;
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.remember-forgot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.remember-me {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-dark);
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  margin-right: 0.5rem;
}

.forgot-link {
  color: var(--link-color);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: var(--primary-gradient-end);
}

.auth-button {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.auth-button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.auth-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.auth-footer a:hover {
  color: var(--primary-gradient-end);
  text-decoration: underline;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.alert-danger {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.alert-success {
  background-color: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* ========================================
   RESPONSIVE DESIGN FOR AUTH PAGES
   ======================================== */

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
  .auth-container {
    max-width: 400px;
  }

  .auth-card {
    padding: 2.5rem 2rem;
  }

  .auth-header h1 {
    font-size: 1.4rem;
  }

  .auth-subtitle {
    font-size: 0.85rem;
  }

  .auth-input {
    padding: 1rem 1rem 1rem 3.5rem;
  }

  .input-icon {
    left: 1.25rem;
  }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
  .auth-container {
    max-width: 380px;
    padding: 15px;
  }

  .auth-card {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }

  .icon-circle {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }

  .auth-header h1 {
    font-size: 1.3rem;
  }

  .auth-subtitle {
    font-size: 0.8rem;
  }

  .auth-input {
    padding: 0.875rem 0.875rem 0.875rem 3.25rem;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .input-icon {
    left: 1rem;
    font-size: 1rem;
  }

  .remember-forgot-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .forgot-link {
    align-self: flex-end;
  }

  .auth-button {
    padding: 0.875rem;
    font-size: 0.95rem;
  }

  .auth-footer {
    font-size: 0.8rem;
  }
}

/* Small mobile phones */
@media (max-width: 576px) {
  .auth-container {
    max-width: 100%;
    padding: 10px;
  }

  .auth-card {
    padding: 1.5rem 1.25rem;
    border-radius: 10px;
  }

  .icon-circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .auth-header h1 {
    font-size: 1.2rem;
  }

  .auth-subtitle {
    font-size: 0.75rem;
  }

  .auth-input {
    padding: 0.75rem 0.75rem 0.75rem 3rem;
    font-size: 16px;
  }

  .input-icon {
    left: 0.875rem;
    font-size: 0.9rem;
  }

  .remember-me {
    font-size: 0.8rem;
  }

  .forgot-link {
    font-size: 0.8rem;
  }

  .auth-button {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .auth-footer {
    font-size: 0.75rem;
  }

  .alert {
    padding: 0.75rem;
    font-size: 0.8rem;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  body {
    padding: 5px;
  }

  .auth-card {
    padding: 1.25rem 1rem;
  }

  .icon-circle {
    width: 55px;
    height: 55px;
    font-size: 1.25rem;
  }

  .auth-header h1 {
    font-size: 1.1rem;
  }

  .auth-subtitle {
    font-size: 0.7rem;
  }

  .auth-input {
    padding: 0.625rem 0.625rem 0.625rem 2.75rem;
    font-size: 16px;
  }

  .input-icon {
    left: 0.75rem;
    font-size: 0.8rem;
  }

  .remember-me {
    font-size: 0.75rem;
  }

  .forgot-link {
    font-size: 0.75rem;
  }

  .auth-button {
    padding: 0.625rem;
    font-size: 0.85rem;
  }

  .auth-footer {
    font-size: 0.7rem;
  }

  .alert {
    padding: 0.625rem;
    font-size: 0.75rem;
  }
}


