/* app/frontend/entrypoints/devise.scss */
[data-devise-brand="admin"] {
  --devise-brand: #2563eb;
  --devise-brand-hover: #1d4ed8;
  --devise-brand-light: #dbeafe;
  --devise-brand-text: #1e40af;
  --devise-brand-focus-ring: #2563eb33;
}

[data-devise-brand="customer"] {
  --devise-brand: #4ade80;
  --devise-brand-hover: #16a34a;
  --devise-brand-light: #dcfce7;
  --devise-brand-text: #166534;
  --devise-brand-focus-ring: #4ade8033;
}

.devise-body {
  display: flex;
  background-color: #f9fafb;
  justify-content: center;
  align-items:  center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
}

.devise-container {
  display: flex;
  flex-direction: column;
  align-items:  center;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.devise-card {
  background: #fff;
  border-radius: .5rem;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
}

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

.devise-card-header--compact {
  text-align: center;
  margin-bottom: 1rem;
}

.devise-card-title {
  color: #111827;
  margin-top: 0;
  margin-bottom: .5rem;
  font-size: 1.875rem;
  font-weight: 700;
}

.devise-card-subtitle {
  color: #4b5563;
  margin: 0;
}

.devise-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.devise-form-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.devise-form-label {
  display: block;
  color: #374151;
  margin-bottom: .5rem;
  font-size: .875rem;
  font-weight: 500;
}

.devise-form-input {
  color: #111827;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: .5rem;
  width: 100%;
  padding: .75rem 1rem;
  transition: border-color .2s, box-shadow .2s;
  font-size: 1rem;
}

.devise-form-input::placeholder {
  color: #6b7280;
}

.devise-form-input:focus {
  outline: none;
  border-color: var(--devise-brand);
  box-shadow: 0 0 0 2px var(--devise-brand-focus-ring);
}

.devise-form-hint {
  color: #6b7280;
  margin-bottom: .5rem;
  font-size: .75rem;
}

.devise-form-hint--warning {
  color: #ca8a04;
  margin-top: .25rem;
  font-size: .75rem;
}

.devise-checkbox-row {
  display: flex;
  align-items:  center;
}

.devise-checkbox {
  accent-color: var(--devise-brand);
  border: 1px solid #d1d5db;
  border-radius: .25rem;
  width: 1rem;
  height: 1rem;
}

.devise-checkbox-label {
  display: block;
  color: #374151;
  margin-left: .5rem;
  font-size: .875rem;
}

.devise-form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.devise-btn-primary {
  box-sizing: border-box;
  background-color: var(--devise-brand);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: .5rem;
  width: 100%;
  padding: .75rem 1rem;
  transition: background-color .2s;
  font-size: 1rem;
  font-weight: 600;
}

.devise-btn-primary:hover {
  background-color: var(--devise-brand-hover);
}

.devise-btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--devise-brand);
}

.devise-btn-outline {
  display: block;
  box-sizing: border-box;
  border: 1px solid var(--devise-brand);
  color: var(--devise-brand);
  text-align: center;
  text-decoration: none;
  border-radius: .5rem;
  width: 100%;
  padding: .5rem 1rem;
  transition: background-color .2s, color .2s;
  font-weight: 500;
}

.devise-btn-outline:hover {
  background-color: var(--devise-brand);
  color: #fff;
}

.devise-btn-danger-outline {
  display: inline-flex;
  color: #b91c1c;
  cursor: pointer;
  background: #fff;
  border: 1px solid #fca5a5;
  border-radius: .5rem;
  align-items:  center;
  padding: .5rem 1rem;
  transition: background-color .2s;
  font-size: 1rem;
}

.devise-btn-danger-outline:hover {
  background-color: #fef2f2;
}

.devise-btn-danger-outline:focus {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ef4444;
}

.devise-oauth-btn {
  box-sizing: border-box;
  display: flex;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: .5rem;
  justify-content: center;
  align-items:  center;
  width: 100%;
  padding: .75rem 1rem;
  transition: background-color .2s;
  font-size: 1rem;
}

.devise-oauth-btn:hover {
  background-color: #f9fafb;
}

.devise-oauth-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--devise-brand-focus-ring);
}

.devise-oauth-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: .75rem;
}

.devise-oauth-btn span {
  color: #374151;
  font-weight: 500;
}

.devise-oauth-section {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.devise-oauth-divider {
  text-align: center;
  color: #4b5563;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: .875rem;
}

.devise-flash {
  text-align: center;
  border-radius: .5rem;
  width: 100%;
  max-width: 28rem;
  margin-bottom: 1rem;
  padding: 1rem;
}

.devise-flash--notice {
  color: #15803d;
  background-color: #dcfce7;
  border: 1px solid #4ade80;
}

.devise-flash--alert {
  color: #b91c1c;
  background-color: #fef2f2;
  border: 1px solid #f87171;
}

.devise-errors {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: .5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.devise-errors-title {
  color: #991b1b;
  margin-top: 0;
  margin-bottom: .5rem;
  font-size: .875rem;
  font-weight: 500;
}

.devise-errors-body {
  color: #b91c1c;
  margin-bottom: .75rem;
  font-size: .875rem;
}

.devise-errors-list {
  list-style: disc inside;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin: 0;
  padding: 0;
}

.devise-links {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.devise-links-primary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.devise-links-secondary {
  display: flex;
  border-top: 1px solid #e5e7eb;
  flex-direction: column;
  gap: .75rem;
  padding-top: 1rem;
}

.devise-link-secondary {
  display: block;
  color: #4b5563;
  text-decoration: underline;
  transition: color .2s;
  font-size: .875rem;
}

.devise-link-secondary:hover {
  color: var(--devise-brand-hover);
  text-decoration: none;
}

.devise-section-separator {
  text-align: center;
  border-top: 1px solid #e5e7eb;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.devise-section-title--danger {
  color: #dc2626;
  margin-bottom: .25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.devise-section-subtitle {
  color: #4b5563;
  margin-bottom: 1rem;
  font-size: .875rem;
}

.devise-back-link {
  display: inline-block;
  color: #4b5563;
  text-decoration: none;
  margin-top: 1rem;
  transition: color .2s;
  font-size: .875rem;
}

.devise-back-link:hover {
  color: #1f2937;
}

.devise-turnstile {
  display: flex;
  justify-content: center;
}
