/* Auth Pages Styles */
:root {
  --auth-primary: #0a2463;
  --auth-secondary: #3e92cc;
  --auth-accent: #d8315b;
  --auth-text: #1e1e1e;
  --auth-text-light: #6c757d;
  --auth-bg-light: #f8f9fa;
  --auth-border: #dee2e6;
  --auth-success: #28a745;
  --auth-warning: #ffc107;
  --auth-danger: #dc3545;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--auth-bg-light);
  overflow-x: hidden;
}

.auth-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Auth Panels */
.auth-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-panel-left {
  background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-secondary) 100%);
  color: white;
  position: relative;
}

.auth-panel-right {
  background-color: white;
}

.auth-panel-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  max-width: 500px;
}

.auth-logo {
  margin-bottom: 2rem;
  max-width: 200px;
}

.auth-panel-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-panel-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Animated Background */
.animated-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
}

/* Auth Features */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auth-feature-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.auth-feature-text p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0;
}

/* Auth Form */
.auth-form-container {
  width: 100%;
  max-width: 450px;
  padding: 2rem;
}

.auth-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-form-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--auth-text);
  margin-bottom: 0.5rem;
}

.auth-form-header p {
  color: var(--auth-text-light);
  font-size: 1rem;
}

.auth-form .form-floating {
  margin-bottom: 1rem;
}

.auth-form .form-control {
  border-radius: 8px;
  padding: 1rem 0.75rem;
  border: 1px solid var(--auth-border);
  transition: all 0.3s ease;
}

.auth-form .form-control:focus {
  border-color: var(--auth-secondary);
  box-shadow: 0 0 0 0.25rem rgba(62, 146, 204, 0.25);
}

.auth-form .form-check-label {
  color: var(--auth-text-light);
  font-size: 0.9rem;
}

.auth-form .btn-primary {
  background-color: var(--auth-primary);
  border-color: var(--auth-primary);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.auth-form .btn-primary:hover {
  background-color: #081d4f;
  border-color: #081d4f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(10, 36, 99, 0.3);
}

.forgot-password {
  color: var(--auth-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s;
}

.forgot-password:hover {
  color: var(--auth-primary);
  text-decoration: underline;
}

/* Password Field */
.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--auth-text-light);
  cursor: pointer;
  z-index: 5;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--auth-text-light);
  font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--auth-border);
}

.auth-divider span {
  padding: 0 1rem;
}

/* Social Login */
.social-login {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  color: var(--auth-text-light);
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--auth-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

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

.back-to-home {
  display: inline-block;
  margin-top: 1rem;
}

/* Password Strength Meter */
.password-strength {
  margin-top: -0.5rem;
}

.password-strength-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--auth-text-light);
  margin-bottom: 0.5rem;
}

.password-strength-meter {
  height: 6px;
  background-color: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.password-strength-meter-bar {
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: width 0.3s, background-color 0.3s;
}

.password-requirements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--auth-text-light);
}

.requirement {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.requirement i {
  font-size: 0.9rem;
}

.requirement.valid {
  color: var(--auth-success);
}

.requirement.valid i {
  color: var(--auth-success);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .auth-container {
    flex-direction: column;
  }

  .auth-panel-left {
    display: none;
  }

  .auth-form-container {
    max-width: 100%;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .auth-form-header h1 {
    font-size: 1.75rem;
  }

  .social-login {
    flex-direction: column;
  }

  .password-requirements {
    grid-template-columns: 1fr;
  }
}

/* Animation Classes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form-header,
.auth-form,
.auth-footer {
  animation: fadeIn 0.6s ease-out forwards;
}

.auth-form {
  animation-delay: 0.2s;
}

.auth-footer {
  animation-delay: 0.4s;
}

/* Form Validation Styles */
.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: var(--auth-danger);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: var(--auth-success);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
