/* ============================================================
   Familia — Golden Hour Design System
   A warm, inviting design system for a family management app.
   Used alongside Tailwind CSS CDN.
   ============================================================ */

/* ============ PWA STANDALONE MODE ============ */
@media all and (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top);
  }
}

/* ============ CSS VARIABLES ============ */
:root {
  --background: #faf7f2;
  --card: #ffffff;
  --card-foreground: #1e1b16;
  --card-border: #f0e8d8;
  --primary: #f5c861;
  --primary-dark: #ebb832;
  --primary-foreground: #3d3627;
  --accent-terracotta: #e8985a;
  --accent-sage: #8fbc8f;
  --accent-sage-dark: #6fa06f;
  --foreground: #1e1b16;
  --muted: #f5f0e8;
  --muted-foreground: #9a8b72;
  --muted-gold: #c4a06a;
  --destructive: #e5484d;
  --destructive-foreground: #ffffff;
  --input: #f5f0e8;
  --ring: #f5c861;
  --border: #f0e8d8;
  --divider: #e8dcc8;
  --radius: 1.25rem;

  /* Chart colors — kept for bg-chart-* utility compatibility */
  --chart-1: #f5c861;
  --chart-2: #3db8a2;
  --chart-3: #e879a5;
  --chart-4: #7fc975;
  --chart-5: #9b7dd4;

  /* Legacy aliases for Tailwind compatibility */
  --secondary: #f5f0e8;
  --secondary-foreground: #1e1b16;
  --accent: #8fbc8f;
  --accent-foreground: #ffffff;
}

/* ============ BASE STYLES ============ */
*, *::before, *::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

/* Font classes */
.font-serif {
  font-family: 'Nunito', sans-serif;
}

.font-sans {
  font-family: 'Nunito Sans', sans-serif;
}

/* Safe area padding for notched devices */
.safe-area-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

/* ============ LINK RESET ============ */
a {
  color: inherit;
  text-decoration: none;
}

/* ============ CARDS ============ */
.card {
  background-color: var(--card);
  color: var(--card-foreground);
  border: 1px solid #f0e8d8;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.card-hover {
  transition: all 0.2s ease;
}

.card-hover:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(245, 200, 97, 0.35);
}

.card-hover:active {
  transform: scale(0.98);
}

/* ============ NAVIGATION ============ */
.nav-link {
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--foreground);
  background-color: #f5f0e8;
}

.nav-link.active {
  background: linear-gradient(135deg, #f5c861, #ebb832) !important;
  color: var(--primary-foreground) !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(245, 200, 97, 0.25);
}

.bottom-nav-link {
  color: var(--muted-foreground);
  transition: all 0.2s ease;
  border-radius: 16px;
}

.bottom-nav-link:hover {
  color: var(--foreground);
}

.bottom-nav-link.active {
  background: linear-gradient(135deg, #f5c861, #ebb832);
  color: var(--primary-foreground);
  font-weight: 600;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(245, 200, 97, 0.25);
}

.bottom-nav-link.active .nav-label {
  display: inline !important;
}

/* ============ COLOR VARIANTS FOR LIST CARDS ============ */
.color-yellow {
  background: linear-gradient(145deg, #fef9c3, #fef3b0);
  border-color: #fde047;
}

.color-teal {
  background: linear-gradient(145deg, #ccfbf1, #b2f5ea);
  border-color: #5eead4;
}

.color-rose {
  background: linear-gradient(145deg, #ffe4e6, #ffd4d8);
  border-color: #fda4af;
}

.color-green {
  background: linear-gradient(145deg, #dcfce7, #c6f6d5);
  border-color: #86efac;
}

.color-purple {
  background: linear-gradient(145deg, #f3e8ff, #e9d5ff);
  border-color: #d8b4fe;
}

/* ============ PROGRESS BAR ============ */
.progress-bar {
  transition: width 0.5s ease;
}

/* ============ CHECKBOX ============ */
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #f0e8d8;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.custom-checkbox:checked {
  background: linear-gradient(135deg, #f5c861, #ebb832);
  border-color: #ebb832;
}

.custom-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 7px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* ============ MODAL ANIMATIONS ============ */
.modal-enter {
  animation: modalFadeIn 0.2s ease forwards;
}

.modal-exit {
  animation: modalFadeOut 0.2s ease forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); }
}

/* Sheet (bottom slide) animation */
.sheet-enter {
  animation: sheetSlideIn 0.3s ease forwards;
}

.sheet-exit {
  animation: sheetSlideOut 0.3s ease forwards;
}

@keyframes sheetSlideIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes sheetSlideOut {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

/* Toast animation */
.toast-enter {
  animation: toastSlideIn 0.3s ease forwards;
}

.toast-exit {
  animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

/* ============ DELETE BUTTON ============ */
.delete-btn {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.group:hover .delete-btn {
  opacity: 1;
}

@media (max-width: 1024px) {
  .delete-btn {
    opacity: 1;
  }
}

/* ============ RECIPE GRID ============ */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

/* ============ PRIORITY BORDERS ============ */
.priority-high {
  border-left: 4px solid #e5484d;
}

.priority-medium {
  border-left: 4px solid #f5c861;
}

.priority-low {
  border-left: 4px solid #8fbc8f;
}

/* ============ ACCENT BORDERS ============ */
.accent-blue {
  border-left: 4px solid #3b82f6;
}

.accent-green {
  border-left: 4px solid #22c55e;
}

.accent-purple {
  border-left: 4px solid #a855f7;
}

.accent-orange {
  border-left: 4px solid #f97316;
}

.accent-pink {
  border-left: 4px solid #ec4899;
}

/* ============ TAB BUTTONS ============ */
.tab-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: var(--muted);
  color: var(--foreground);
}

.tab-btn.active {
  background: linear-gradient(135deg, #f5c861, #ebb832);
  color: var(--primary-foreground);
  font-weight: 600;
}

/* ============ CATEGORY PILLS ============ */
.category-pill {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: #f5f0e8;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.category-pill:hover {
  background: var(--muted);
}

.category-pill.active {
  background: linear-gradient(135deg, #f5c861, #ebb832);
  color: var(--primary-foreground);
  border-color: transparent;
}

/* ============ FORM INPUTS ============ */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--input);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(245, 200, 97, 0.2);
}

.form-input::placeholder {
  color: var(--muted-foreground);
}

/* Select styling */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239a8b72' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  padding-right: 2.5rem;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #f5c861, #ebb832);
  color: var(--primary-foreground);
  box-shadow: 0 2px 8px rgba(245, 200, 97, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(245, 200, 97, 0.35);
}

.btn-secondary {
  background: #f5f0e8;
  color: var(--foreground);
}

.btn-secondary:hover {
  background: var(--muted);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-outline:hover {
  background: var(--muted);
  border-color: var(--divider);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
}

.btn-ghost:hover {
  background: var(--muted);
  color: var(--foreground);
}

.btn-destructive {
  background: var(--destructive);
  color: var(--destructive-foreground);
}

.btn-destructive:hover {
  opacity: 0.9;
}

.btn-icon {
  padding: 0;
  width: 36px;
  height: 36px;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #f0e8d8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ============ EMPTY STATE ============ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  color: var(--muted-foreground);
  border: 2px dashed #e8dcc8;
  border-radius: var(--radius);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* ============ BADGE ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-default {
  background: #f5f0e8;
  color: var(--muted-foreground);
}

.badge-primary {
  background: linear-gradient(135deg, #f5c861, #ebb832);
  color: var(--primary-foreground);
}

/* ============ AVATAR ============ */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 600;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--primary-foreground);
}

.avatar-sm {
  width: 24px;
  height: 24px;
  font-size: 0.625rem;
}

.avatar-md {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.avatar-lg {
  width: 34px;
  height: 34px;
  font-size: 0.875rem;
}

/* ============ SPINNER ============ */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ EMOJI PICKER ============ */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.25rem;
}

.emoji-btn {
  padding: 0.5rem;
  font-size: 1.25rem;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.emoji-btn:hover {
  background: var(--muted);
}

.emoji-btn.selected {
  background: linear-gradient(135deg, #f5c861, #ebb832);
}

/* ============ COLOR PICKER ============ */
.color-grid {
  display: flex;
  gap: 0.5rem;
}

.color-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-btn:hover {
  transform: scale(1.1);
}

.color-btn.selected {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--ring);
}

/* ============ FAVORITE BUTTON ============ */
.favorite-btn {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--border);
  transition: all 0.2s ease;
}

.favorite-btn:hover {
  color: #f5c861;
}

.favorite-btn.active {
  color: #f5c861;
}

.favorite-btn.active svg {
  fill: #f5c861;
}

/* ============ SEARCH INPUT ============ */
.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(245, 200, 97, 0.2);
}

.search-wrapper {
  position: relative;
}

.search-wrapper svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted-foreground);
}

/* ============ RADIO / CHECKBOX LABELS ============ */
label:has(input[type="radio"]:checked),
label:has(input[type="checkbox"]:checked) {
  background: linear-gradient(135deg, #f5c861, #ebb832) !important;
  color: var(--primary-foreground) !important;
  border-color: var(--primary) !important;
}

/* ============ TEXT UTILITY CLASSES ============ */
.text-primary {
  color: var(--primary);
}

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

.text-foreground {
  color: var(--foreground);
}

/* ============ BACKGROUND UTILITY CLASSES ============ */
.bg-background {
  background-color: var(--background);
}

.bg-card {
  background-color: var(--card);
}

.bg-secondary {
  background-color: var(--secondary);
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-accent {
  background-color: var(--accent) !important;
}

.bg-chart-3 {
  background-color: var(--chart-3) !important;
}

.bg-chart-4 {
  background-color: var(--chart-4) !important;
}

.bg-chart-5 {
  background-color: var(--chart-5) !important;
}

.bg-muted {
  background-color: var(--muted) !important;
}

/* ============ MEAL PLAN ============ */
.meal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 1024px) {
  .meal-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
  }
}

.meal-day-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.meal-today {
  border-left: 3px solid var(--primary);
}

@media (min-width: 1024px) {
  .meal-today {
    border-left: none;
    border-top: 3px solid var(--primary);
  }
}

.meal-day-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0.875rem 0.375rem;
}

@media (min-width: 1024px) {
  .meal-day-header {
    flex-direction: column;
    gap: 0;
    padding: 0.625rem 0.75rem 0.25rem;
  }
}

.meal-day-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--foreground);
}

.meal-day-name-today {
  color: var(--primary-dark);
}

.meal-day-date {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.meal-day-body {
  padding: 0.375rem 0.875rem 0.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .meal-day-body {
    padding: 0.25rem 0.75rem 0.75rem;
    min-height: 80px;
  }
}

/* Empty slot */
.meal-add-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  width: 100%;
  cursor: pointer;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.meal-add-btn:hover {
  border-color: var(--primary);
  color: var(--foreground);
  background: rgba(245, 200, 97, 0.05);
}

/* Meal entry */
.meal-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
}

.meal-entry-content {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  flex: 1;
}

.meal-entry-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meal-recipe-link {
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.meal-recipe-link:hover {
  color: var(--primary-dark);
}

.meal-entry-actions {
  display: flex;
  gap: 2px;
  opacity: 1;
}

@media (min-width: 1024px) {
  .meal-entry-actions {
    opacity: 0;
    transition: opacity 0.15s;
  }

  .meal-entry:hover .meal-entry-actions {
    opacity: 1;
  }
}

.meal-entry-actions .btn-icon {
  width: 28px;
  height: 28px;
}

/* Input form */
.meal-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meal-input-row {
  display: flex;
  gap: 0.375rem;
  align-items: center;
}

.meal-input {
  flex: 1;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.8125rem !important;
}

.meal-recipe-picker-btn.btn-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.meal-input-actions {
  display: flex;
  gap: 0.375rem;
}

.meal-input-actions .btn {
  padding: 0.325rem 0.75rem;
  font-size: 0.75rem;
}

/* Recipe dropdown */
.meal-recipe-dropdown {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.meal-recipe-search {
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.8125rem !important;
}

.meal-recipe-search:focus {
  box-shadow: none !important;
}

.meal-recipe-list {
  max-height: 160px;
  overflow-y: auto;
}

.meal-recipe-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8125rem;
  font-family: inherit;
  color: var(--foreground);
  transition: background 0.15s;
  text-align: left;
}

.meal-recipe-option:hover {
  background: var(--muted);
}

.meal-recipe-empty {
  padding: 0.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* ============ SIGN-IN PAGE ============ */
.signin-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(245, 200, 97, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(232, 152, 90, 0.08) 0%, transparent 55%),
    var(--background);
}

.signin-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0;
  animation: glowIn 1.4s ease forwards;
}

.signin-glow-1 {
  width: 400px;
  height: 400px;
  top: -80px;
  right: -60px;
  background: rgba(245, 200, 97, 0.18);
  animation-delay: 0.2s;
}

.signin-glow-2 {
  width: 300px;
  height: 300px;
  bottom: -40px;
  left: -40px;
  background: rgba(143, 188, 143, 0.12);
  animation-delay: 0.5s;
}

@keyframes glowIn {
  to { opacity: 1; }
}

.signin-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem 2rem;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.03);
  position: relative;
  opacity: 0;
  transform: translateY(12px);
  animation: cardIn 0.5s ease 0.15s forwards;
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.signin-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.signin-logo-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, #f5c861, #ebb832);
  box-shadow: 0 4px 14px rgba(245, 200, 97, 0.3);
}

.signin-title {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--foreground);
  margin: 0 0 0.15rem;
  letter-spacing: -0.01em;
}

.signin-subtitle {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin: 0 0 1.75rem;
}

.signin-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.signin-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.signin-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  padding-left: 0.125rem;
}

.signin-password-wrap {
  position: relative;
}

.signin-password-wrap .form-input {
  padding-right: 2.75rem;
}

.signin-eye-btn {
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.signin-eye-btn:hover {
  color: var(--foreground);
}

.signin-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f5c861, #ebb832);
  color: var(--primary-foreground);
  box-shadow: 0 2px 10px rgba(245, 200, 97, 0.3);
  transition: box-shadow 0.2s, transform 0.15s;
}

.signin-submit:hover:not(:disabled) {
  box-shadow: 0 4px 18px rgba(245, 200, 97, 0.4);
}

.signin-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.signin-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.signin-error {
  background: rgba(229, 72, 77, 0.08);
  border: 1px solid rgba(229, 72, 77, 0.2);
  color: var(--destructive);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.625rem 0.875rem;
  border-radius: 10px;
  text-align: center;
  transition: opacity 0.4s;
}

.signin-error-fade {
  opacity: 0;
}
