/* ===================================================================
   Authentication Pages (Login/Register)
   =================================================================== */

.auth-body {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0f2fe 100%);
  position: relative;
  overflow: hidden;
}

.auth-body::before {
  content: '';
  position: absolute;
  top: -300px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79,70,229,0.15), transparent);
  border-radius: 50%;
}

.auth-body::after {
  content: '';
  position: absolute;
  bottom: -300px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14,165,233,0.15), transparent);
  border-radius: 50%;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  min-height: 600px;
  position: relative;
  z-index: 1;
}

.auth-side {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3e%3cg fill='none' stroke='rgba(255,255,255,0.08)'%3e%3cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3e%3c/g%3e%3c/svg%3e");
}

.auth-side-content {
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

.auth-logo-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.auth-side h2 {
  color: white;
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.auth-side p {
  opacity: 0.9;
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.auth-features {
  list-style: none;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
}

.auth-features li i {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.auth-form-side {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

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

.auth-form-header h1 {
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
}

.auth-form-header p {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
}

.auth-form-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.auth-form-footer a {
  font-weight: 600;
}

.input-icon {
  position: relative;
}

.input-icon .form-control {
  padding-left: 2.75rem;
}

body[dir="rtl"] .input-icon .form-control {
  padding-left: 1rem;
  padding-right: 2.75rem;
}

.input-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 0.9375rem;
}

body[dir="rtl"] .input-icon i {
  left: auto;
  right: 1rem;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.form-options a {
  font-weight: 500;
}

.back-link {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  color: var(--gray-500);
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  z-index: 2;
}

body[dir="rtl"] .back-link {
  left: auto;
  right: 1.5rem;
}

.back-link:hover {
  color: var(--primary);
}

@media (max-width: 992px) {
  .auth-body {
    padding: 1rem;
  }
  .auth-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .auth-side {
    display: none;
  }
  .auth-form-side {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .auth-form-side {
    padding: 1.5rem 1rem;
  }
  .auth-form-header h1 {
    font-size: 1.5rem;
  }
}
