/*
 * Authentication Form Styles
 * Styles for login, registration, and other auth forms
 */

/* ===== Auth Forms ===== */
.devise-form {
  max-width: 400px;
  margin: var(--space-2xl) auto;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.devise-form h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.devise-form .field {
  margin-bottom: var(--space-md);
}

.devise-form label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.devise-form input[type="email"],
.devise-form input[type="password"],
.devise-form input[type="text"] {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.devise-form .field-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.devise-form .field-checkbox label {
  margin-bottom: 0;
}

.devise-form .actions {
  margin-top: var(--space-lg);
}

.devise-form .actions input {
  width: 100%;
  color: var(--color-text-inverse);
}

/* ===== OAuth Links ===== */
.oauth-links {
  margin-bottom: var(--space-md);
  text-align: center;
}

.oauth-links p {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Form wrapper from button_to */
form.oauth-btn {
  display: block;
}

/* Button inside the form */
form.oauth-btn button,
button.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: 500;
  font-size: var(--font-size-base);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

form.oauth-btn button:hover,
button.oauth-btn:hover {
  background: var(--color-border);
}

form.oauth-btn.google button,
button.oauth-btn.google {
  border-color: #4285f4;
}

/* ===== Auth Divider ===== */
.auth-divider {
  text-align: center;
  margin: var(--space-lg) 0;
  color: var(--color-text-muted);
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 70px);
  height: 1px;
  background: var(--color-border);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

/* ===== Field Hints ===== */
.field-hint {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: normal;
}

/* ===== Devise Links ===== */
.devise-links {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.devise-links a {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}

.devise-links a:hover {
  color: var(--color-primary);
}

.devise-links .link-separator {
  color: var(--color-text-muted);
  margin: 0 var(--space-sm);
}
