/* Authentication Pages Styling */

.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  width: 100%;
  max-width: 450px;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: #718096;
  font-size: 0.95rem;
}

.auth-form .field {
  margin-bottom: 1.5rem;
}

.auth-form label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-form .field_with_errors input {
  border-color: #f56565;
}

.auth-form .actions {
  margin-top: 2rem;
}

.auth-form input[type="submit"],
.auth-form button[type="submit"] {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-form input[type="submit"]:hover,
.auth-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.auth-form .field_with_errors {
  display: inline;
}

.auth-form #error_explanation {
  background: #fff5f5;
  border: 2px solid #fc8181;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.auth-form #error_explanation h2 {
  color: #c53030;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.auth-form #error_explanation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-form #error_explanation li {
  color: #742a2a;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.auth-links {
  margin-top: 1.5rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.auth-links a {
  color: #667eea;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.auth-links a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
  padding: 0 1rem;
  color: #a0aec0;
  font-size: 0.85rem;
}

.remember-me {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.remember-me input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

.remember-me label {
  margin-bottom: 0;
  font-weight: normal;
  color: #4a5568;
}

/* OAuth Buttons */
.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.oauth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  color: #2d3748;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.oauth-button:hover {
  border-color: #cbd5e0;
  background: #f7fafc;
  transform: translateY(-1px);
}

.oauth-button svg {
  margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }
  
  .auth-header h2 {
    font-size: 1.5rem;
  }
}
