* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --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;
}

body {
  background-color: var(--beige);
}

.auth-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Right side - Auth forms */
.auth-forms-section {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.forms-container {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 5px 0 var(--gray-300);
  padding: 20px;
  max-width: 28rem;
  width: 100%;
  margin: 0 auto;
}

/* Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-300);
  margin-bottom: 2rem;
}

.auth-tab {
  padding: 0.75rem 1.5rem;
  font-size: 16px;
  font-weight: 500;
  flex: 1;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s;
}
.auth-tab a {
  text-decoration: none;
  color: var(--gray-500);
}

.auth-tab a:hover {
  color: var(--gray-700);
}

.auth-tab.active {
  border-bottom: 2px solid var(--red);
  color: var(--red);
}

/* Forms */
.auth-form {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-700);
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  padding: 7px 35px;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(145, 64, 35, 0.2);
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.auth-button {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 18px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s;
  border: none;
}

.primary-button,
.secondary-button {
  background-color: var(--red);
  color: white;
}

.primary-button:hover,
.secondary-button:hover {
  background-color: rgba(145, 64, 35, 0.9);
}

/* Responsive styles */
@media (min-width: 768px) {
  .auth-container {
    flex-direction: row;
  }

  .brand-section {
    width: 50%;
    padding: 3rem;
  }

  .decorative-elements {
    display: block;
  }

  .auth-forms-section {
    width: 50%;
    padding: 3rem;
  }
}
