/* app/assets/stylesheets/login.css */
.auth-card {
color: var(--text);
border: 2px solid #ddd;
border-radius: 20px;
box-shadow: 0 8px 16px rgba(0,0,0,0.15);
padding: 28px;
backdrop-filter: blur(8px);
}

.auth-page {
  width: 400px;
  margin: 50px auto;
}

.auth-flash {
  margin-top: -60px;
  position: absolute;
  width: 40%;
}

.auth-logo {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 28px; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white; border-radius: 14px; margin-bottom: 16px;
}

.auth-title {
  width: 80e%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.auth-subtitle {
  color: var(--muted);
  margin: 40px;
  text-align: center;
}
/* Form */
.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field-wrapper {
  width: 100%;
  margin: 0 auto;
  text-align: left;
}

.field {
  display: grid;
  gap: 8px;
  width: 100%;
}

.label {
  font-weight: 600;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.muted-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.muted-link:hover {
  color: var(--text);
}


.input {
  width: 100%;
  border: 1px solid #ccc;
  /* border: 1px solid var(--card-border); */
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  outline: none;
  transition: border-color 120ms, box-shadow 120ms, background 120ms;
  box-sizing: border-box;
  }

.input option {
  background-color: rgba(255,255,255,0.04);
  padding: 8px;
  /* Note: Option styling is limited; this may not work consistently across browsers */
}

.input option:hover {
  background-color: #f0f0f0;
}

.input option:checked {
  background-color: rgba(255,255,255,0.06); /* Blue for selected */
  font-weight: bold;
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ring) 40%, transparent);
  background: rgba(255,255,255,0.06);
}

.field-inline { margin-top: -4px; }
.checkbox {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.checkbox input {
  width: 16px;
  height: 16px;
}

.actions {
  text-align: center;
  align-items: center;
  margin: 0 auto;
  width: 200px;
  margin-top: 6px;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-login {
  width: 100%;
  height: 40px;
  font-size: 16px;
  line-height: 1.5;
  padding: 8px 16px;
  box-sizing: border-box;
  text-decoration: none;
  align-content: center;
  align-items: center;
  align-self: center;
}

.auth-providers {
  text-align: center;
  align-items: center;
  margin: 0 auto;
  width: 200px;
}

.alt-action {
  margin-top: 16px;
  color: var(--muted);
}

.link {
  color: var(--accent);
  text-decoration: none;
}

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

/* Flash messages (optional) */
/* .notice, .alert { margin: 12px 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; } */
/* .notice { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.35); color: #000000; } */
/* .alert { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.45); color: #fecaca; } */



/* Small screens */
@media (max-width: 380px) { .auth-card { padding: 20px; } }
