/* Modern Auth Page Styles 2.0 */
:root {
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  
  --error: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --primary: #4361ee;
  --secondary: #3a56d4;
  --accent: #f72585;
  
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --black: #000000;
}

/* Trang đăng nhập/đăng ký mới */
.auth-section {
  min-height: calc(100vh - 80px);
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.03), rgba(247, 37, 133, 0.03));
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.auth-header {
  padding: 0;
  position: relative;
  background: linear-gradient(to right, #4361ee, #3a56d4);
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.auth-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTQ0MCAxMDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KICA8ZyBvcGFjaXR5PSIwLjEiPg0KICAgIDxjaXJjbGUgY3g9IjcyMCIgY3k9IjUwMCIgcj0iMzAwIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIiIC8+DQogICAgPGNpcmNsZSBjeD0iNzIwIiBjeT0iNTAwIiByPSI0MDAiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIgLz4NCiAgICA8Y2lyY2xlIGN4PSI3MjAiIGN5PSI1MDAiIHI9IjUwMCIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIiAvPg0KICA8L2c+DQo8L3N2Zz4=');
  background-size: cover;
  opacity: 0.3;
}

.auth-header-content {
  position: relative;
  z-index: 10;
  padding: 0 2rem;
}

.auth-header h1 {
  color: white;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.auth-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.auth-body {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-tabs {
  display: flex;
  background-color: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  margin-bottom: 2.5rem;
  width: 100%;
  max-width: 400px;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-700);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.auth-tab a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.auth-tab.active {
  color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-forms {
  width: 100%;
  max-width: 400px;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

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

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  text-align: center;
}

.form-description {
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Form fields */
.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  pointer-events: none;
}

.input-group input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  background-color: var(--white);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
  outline: none;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--gray-700);
}

/* Password strength */
.password-strength {
  margin-top: 0.75rem;
}

.strength-meter {
  height: 6px;
  background-color: var(--gray-200);
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background-color: var(--error);
  transition: width 0.3s ease, background-color 0.3s ease;
  width: 20%;
}

.strength-text {
  font-size: 0.75rem;
  color: var(--gray-600);
  display: flex;
  justify-content: space-between;
}

/* Form options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.checkbox-label span {
  font-size: 0.875rem;
  color: var(--gray-700);
}

.forgot-password {
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(to right, #4361ee, #3a56d4);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  width: 0;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.3s ease;
}

.btn-primary:hover::after {
  width: 100%;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Form footer */
.form-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.form-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

/* Auth error and success */
.auth-error, .auth-success {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: none;
}

.auth-error {
  background-color: rgba(239, 68, 68, 0.08);
  color: var(--error);
  border-left: 4px solid var(--error);
}

.auth-success {
  background-color: rgba(16, 185, 129, 0.08);
  color: var(--success);
  border-left: 4px solid var(--success);
}

/* Feature cards area (for mobile) */
.features-area {
  margin-top: 3rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 2rem;
  text-align: center;
}

.features-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--gray-800);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--gray-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-color: var(--gray-300);
}

.feature-card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(67, 97, 238, 0.2));
  color: var(--primary);
  border-radius: 50%;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--gray-800);
}

.feature-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Stats section */
.stats-section {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

.stat-item {
  flex: 1;
  min-width: 100px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Strength indicator styles */
.strength-bar.weak {
  width: 25%;
  background-color: var(--error);
}

.strength-bar.medium {
  width: 50%;
  background-color: var(--warning);
}

.strength-bar.strong {
  width: 75%;
  background-color: var(--primary);
}

.strength-bar.very-strong {
  width: 100%;
  background-color: var(--success);
}

/* Responsive design */
@media (min-width: 768px) {
  .auth-container {
    flex-direction: row;
    align-items: stretch;
    min-height: 600px;
  }
  
  .auth-header {
    width: 45%;
    height: auto;
    justify-content: center;
  }
  
  .auth-body {
    width: 55%;
    padding: 3.5rem;
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-section {
    gap: 2rem;
  }
  
  .auth-header h1 {
    font-size: 2.75rem;
  }
  
  .auth-header p {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .auth-container {
    max-width: 1100px;
  }
  
  .auth-header {
    width: 50%;
  }
  
  .auth-body {
    width: 50%;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}