/* Auth Layout Styles */
.auth-layout {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--main-bg, #f8fafc);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Logo */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-primary, #1e293b);
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 32px;
}

.auth-logo img {
  border-radius: 8px;
}

.auth-logo:hover {
  text-decoration: none;
  color: var(--text-primary, #1e293b);
}

/* Main Content */
.auth-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Card */
.auth-card {
  background-color: var(--card-bg, #fff);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 32px;
  margin-bottom: 24px;
}

.auth-card-header {
  margin-bottom: 24px;
  text-align: center;
}

.auth-card-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary, #1e293b);
  margin: 0 0 8px 0;
}

.auth-card-header p {
  font-size: 16px;
  color: var(--text-secondary, #64748b);
  margin: 0;
}

/* Form Styles */
.auth-form {
  width: 100%;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form .form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin-bottom: 6px;
}

.auth-form .form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  background-color: var(--card-bg, #fff);
  color: var(--text-primary, #1e293b);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.auth-form .form-control:focus {
  outline: none;
  border-color: var(--brand-primary, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-form .form-control::placeholder {
  color: var(--text-secondary, #64748b);
  opacity: 0.7;
}

.auth-form .help-text {
  font-size: 13px;
  color: var(--text-secondary, #64748b);
  margin-top: 6px;
}

/* Checkbox styling */
.auth-form .checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.auth-form .checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-primary, #3b82f6);
  cursor: pointer;
}

.auth-form .checkbox-group label {
  font-size: 14px;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  margin: 0;
}

/* Primary Button */
.auth-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background-color: var(--brand-primary, #3b82f6);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.auth-btn-primary:hover {
  background-color: #2563eb;
}

.auth-btn-primary:active {
  transform: scale(0.98);
}

/* Links */
.auth-link {
  color: var(--brand-primary, #3b82f6);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

.auth-links {
  text-align: center;
  margin-top: 16px;
}

.auth-links p {
  font-size: 14px;
  color: var(--text-secondary, #64748b);
  margin: 8px 0;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border-color, #e2e8f0);
}

.auth-divider span {
  padding: 0 16px;
  font-size: 14px;
  color: var(--text-secondary, #64748b);
}

/* Alert Messages */
.auth-alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.auth-alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

.auth-alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

.auth-alert ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.auth-alert li {
  margin-bottom: 4px;
}

.auth-alert p {
  margin: 0;
}

/* Footer */
.auth-footer {
  text-align: center;
  padding: 24px 0;
  margin-top: auto;
}

.auth-footer p {
  font-size: 14px;
  color: var(--text-secondary, #64748b);
  margin: 0;
}

.auth-footer a {
  color: var(--brand-primary, #3b82f6);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .auth-container {
    padding: 16px;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .auth-card-header h1 {
    font-size: 24px;
  }

  .auth-logo {
    font-size: 18px;
  }
}

/* Dark Mode */
[data-theme="dark"] .auth-layout {
  background-color: #0f172a;
}

[data-theme="dark"] .auth-logo {
  color: #f1f5f9;
}

[data-theme="dark"] .auth-logo:hover {
  color: #f1f5f9;
}

[data-theme="dark"] .auth-card {
  background-color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .auth-card-header h1 {
  color: #f1f5f9;
}

[data-theme="dark"] .auth-card-header p {
  color: #94a3b8;
}

[data-theme="dark"] .auth-form .form-label {
  color: #f1f5f9;
}

[data-theme="dark"] .auth-form .form-control {
  background-color: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .auth-form .form-control::placeholder {
  color: #64748b;
}

[data-theme="dark"] .auth-form .help-text {
  color: #94a3b8;
}

[data-theme="dark"] .auth-form .checkbox-group label {
  color: #94a3b8;
}

[data-theme="dark"] .auth-links p {
  color: #94a3b8;
}

[data-theme="dark"] .auth-divider::before,
[data-theme="dark"] .auth-divider::after {
  background-color: #334155;
}

[data-theme="dark"] .auth-divider span {
  color: #94a3b8;
}

[data-theme="dark"] .auth-alert-error {
  background-color: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

[data-theme="dark"] .auth-alert-success {
  background-color: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

[data-theme="dark"] .auth-footer p {
  color: #94a3b8;
}

[data-theme="dark"] .auth-btn-primary:hover {
  color: #fff;
}
