/* =======================================
   ARTE DESIGN SYSTEM
======================================= */

:root {
  /* Primary Palette */
  --color-black: #010103;
  --color-wine: #AA1E51;
  --color-pink: #F072AB;
  --color-blush: #F5AECD;
  --color-hot: #EC037C;
  --color-grey: #E6E7E8;
  --color-red: #DD1F26;

  /* Neutral System */
  --color-bg: #FAF9F3;
  --color-text: #010103;
  --color-muted: #6c6c6c;

  /* Shadows */
  --shadow-soft: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-strong: 0 10px 40px rgba(0,0,0,0.15);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Transition */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s ease;

  --header-height: 70px;
}


/* =======================================
   GLOBAL RESET
======================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--color-bg);
  margin: 0;
  padding: 0;
}

img, svg {
  max-width: 100%;
  height: auto;
}


/* =======================================
   TYPOGRAPHY
======================================= */

/* h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
  color: var(--color-hot)
}

p {
  margin: 0;
  color: var(--color-muted);
}

.serif {
  font-family: 'Playfair Display', serif;
} */


/* =======================================
   LAYOUT
======================================= */

.container-centered {
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);   /* push entire container down */

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px 0;
  background: var(--color-bg);
}

.card-elevated {
  background: white;
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 100%;
  max-width: 520px;
  margin: 0 16px;
  position: relative;
  transition: var(--transition-smooth);
}

.card-elevated:hover {
  box-shadow: var(--shadow-strong);
}

/* Brand Accent Line */
.card-elevated::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}


/* =======================================
   FORM SYSTEM
======================================= */

.form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--color-wine);
  text-transform: uppercase;
}

/* Text-style inputs only */
input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-grey);
  font-size: 15px;
  background: white;
  color: var(--color-text);
  transition: var(--transition-smooth);
}

input[type="checkbox"] {
  width: auto;
  padding: 0;
  border: none;
  box-shadow: none;
  accent-color: var(--color-primary);
}

input::placeholder {
  color: #aaa;
}

input:focus {
  outline: none;
  border-color: var(--color-wine);
  box-shadow: 0 0 0 2px rgba(170, 30, 81, 0.15);
}

/* When no date/time is selected */
input[type="date"],
input[type="time"] {
  color: var(--color-muted);
}

/* When user has selected a value */
input[type="date"]:valid,
input[type="time"]:valid {
  color: var(--color-text);
}

/* =======================================
   BUTTON SYSTEM
======================================= */

button {
  font-family: inherit;
  background-color: inherit;
  outline: none;
}

.btn-glow {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-pink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-hot);
  cursor: pointer;
  transition: var(--transition-smooth);
  margin: 0 auto;
  display: block;
  width: 100%;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 
      inset 0 0 20px rgba(255, 140, 228, 0.2),
      0 0 50px currentColor,
      0 20px 30px rgba(0, 0, 0, 0.3);
}

.btn-glow:active {
  transform: translateY(0);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-pink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-hot);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: var(--color-hot);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
  color: white;
}

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

.btn-secondary {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-pink);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-wine);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--color-pink);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
  color: white;
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-accent {
  background: var(--color-hot);
  color: white;
}

.btn-accent:hover {
  background: var(--color-wine);
}

/* =======================================
   LOGIN LOGO
======================================= */

.login-logo {
  width: 140px;
  display: block;
  margin: 0 auto 4px auto;
}

/* .login-logo:hover {
  opacity: 1;
  transform: scale(1.02);
} */

.login-logo:hover {
  animation: spin 1s linear infinite;
}

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

/* ===============================
   FLOATING TOAST
================================ */

.toast-popup {
  position: fixed;
  top: 80px;
  right: 24px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--color-pink);
  color: var(--color-black);
  box-shadow: var(--shadow-strong);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;

  opacity: 0;
  transform: translateY(-12px);

  transition: opacity 1.2s ease, transform 1.2s ease;
}

/* When visible */
.toast-show {
  opacity: 1;
  transform: translateY(0);
}

/* Fade out */
.toast-fade {
  opacity: 0;
  transform: translateY(-12px);
}

/* =======================================
   UTILITY CLASSES
======================================= */

.text-center {
  text-align: center;
}

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

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }


/* =======================================
   RESPONSIVE
======================================= */

@media (max-width: 480px) {

  .card-elevated {
    padding: 28px;
  }

  h2 {
    font-size: 22px;
  }

  input {
    font-size: 16px; /* prevents iOS zoom */
  }

}