/* Authentication Pages Styling */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 13px 13px;
}

.auth-container {
  width: 100%;
  max-width: 700px;
  padding: 2rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.back-link {
  position: absolute;
  left: 32px;
  top: 32px;
  background-color: var(--dark-gold);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
  text-shadow: none;
}

.back-link:hover {
  background-color: color-mix(in srgb, var(--dark-gold) 85%, black);
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.auth-logo img {
  width: 40%;
  color: var(--dark-gold);
}

.auth-logo h1 {
  font-family: "Latin Modern Roman", serif;
  font-size: 1.5rem;
  color: var(--dark-gold);
  text-align: center;
  line-height: 1.2;
  margin: 0;
}

.auth-card {
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 
    0 1px 2px rgba(0,0,0,0.07),
    0 2px 4px rgba(0,0,0,0.07),
    0 4px 8px rgba(0,0,0,0.07),
    0 8px 16px rgba(0,0,0,0.07);
}

.auth-card h2 {
  font-family: "Latin Modern Roman", serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--dark-gold);
  margin: 0 0 0.5rem 0;
}

.auth-subtitle {
  color: #A38672;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.auth-subtitle a {
  color: var(--dark-gold);
  text-decoration: underline;
}

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

.form-group label {
  display: block;
  color: #333;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background-color: white;
  color: #333;
}

.form-group input:focus {
  outline: none;
  border-color: var(--dark-gold);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

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

.form-checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
}

label[for="id_remember"] {
  color: black;
  text-shadow: none;
}

.forgot-link {
  color: var(--dark-gold);
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--dark-gold);
  color: white;
}

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--dark-gold) 85%, black);
}

/* Social Login */
.social-login {
  margin-top: 2rem;
}

.divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

.divider span {
  background: white;
  padding: 0 1rem;
  color: #999;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #ddd;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  background-color: white;
  color: #333;
}

.btn-social:hover {
  background-color: #f8f8f8;
}

.btn-social img {
  width: 20px;
  height: 20px;
}

.google-icon {
  width: 20px;
  height: 20px;
  background-color: #4285f4;
  color: white;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 14px;
}

/* Error Messages */
.form-errors {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.error-message {
  color: #dc2626;
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-container {
    padding: 1rem;
  }
  
  .auth-card {
    padding: 2rem 1.5rem;
  }
  
  .auth-header {
    margin-bottom: 2rem;
  }
}