/* 
   Authentication Forms Styling
   Consistent styling for login, registration, and other auth pages
*/

.auth-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 2.5rem 0;
}

.auth-card {
  background: rgba(30, 41, 59, 0.95) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 1.5rem !important;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
}

.auth-card .card-header {
  padding: 1.75rem 2rem 0.75rem;
  background: transparent;
  border: none;
  text-align: center;
}

.auth-card .card-body {
  padding: 1.5rem 2rem 2rem;
}

.auth-card .card-footer {
  padding: 1.5rem 2rem;
  background: rgba(15, 23, 42, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Auth form title */
.auth-title {
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: white !important;
  letter-spacing: -0.01em;
}

/* Auth icon */
.auth-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lpw-primary), var(--lpw-accent));
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.auth-icon i {
  font-size: 1.75rem;
  color: white;
}

/* Form controls */
.auth-form .form-control,
.auth-form .form-select {
  background-color: rgba(20, 30, 50, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  height: auto;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  font-size: 1rem;
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
  background-color: rgba(25, 35, 60, 0.9) !important;
  border-color: var(--lpw-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25) !important;
}

/* Form label */
.auth-form .form-label {
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Form helper text */
.auth-form .form-text {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Auth input groups */
.auth-form .input-group-text {
  background-color: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  border-right: none;
  border-top-left-radius: 0.75rem;
  border-bottom-left-radius: 0.75rem;
  padding: 0 1rem;
}

.auth-form .input-group .form-control {
  border-left: none !important;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Remember me checkbox */
.auth-form .form-check {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.auth-form .form-check-input {
  background-color: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 1.1rem;
  height: 1.1rem;
}

.auth-form .form-check-input:checked {
  background-color: var(--lpw-primary);
  border-color: var(--lpw-primary);
}

.auth-form .form-check-label {
  color: rgba(255, 255, 255, 0.9);
  padding-left: 0.25rem;
}

/* Authentication buttons */
.auth-form .btn-primary {
  background: linear-gradient(135deg, var(--lpw-primary) 0%, var(--lpw-accent) 100%);
  border: none;
  color: white;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  border-radius: 0.75rem;
  width: 100%;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transition: all 0.25s ease;
}

.auth-form .btn-primary:hover,
.auth-form .btn-primary:focus {
  background: linear-gradient(135deg, #5855f0 0%, #7c3aed 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(99, 102, 241, 0.4);
}

/* External auth providers */
.external-auth {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.external-auth-title {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.external-auth-title::before,
.external-auth-title::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 1px;
  width: 25%;
  background: rgba(255, 255, 255, 0.1);
}

.external-auth-title::before {
  left: 0;
}

.external-auth-title::after {
  right: 0;
}

.external-auth-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.external-auth-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.external-auth-button:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.external-auth-button i {
  font-size: 1.1rem;
  color: white;
}

/* Links in auth forms */
.auth-link {
  color: var(--lpw-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.auth-link:hover {
  color: var(--lpw-accent);
  text-decoration: underline;
}

/* Validation error messages */
.validation-summary-errors {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: rgb(252, 165, 165) !important;
}

.validation-summary-errors ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.field-validation-error {
  font-size: 0.875rem;
  color: rgb(252, 165, 165) !important;
  margin-top: 0.5rem;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
  .auth-container {
    padding: 1.5rem 0;
  }
  
  .auth-card .card-header {
    padding: 1.5rem 1.5rem 0.5rem;
  }
  
  .auth-card .card-body {
    padding: 1rem 1.5rem 1.5rem;
  }
  
  .auth-card .card-footer {
    padding: 1.25rem 1.5rem;
  }
  
  .auth-title {
    font-size: 1.5rem;
  }
  
  .auth-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
  }
  
  .auth-icon i {
    font-size: 1.5rem;
  }
}