/* ======================================================================
   Julia Store — Login Page Styles
   ====================================================================== */

/* ============ 1. Variables & Reset ============ */
:root {
  --pink: #e91e63;
  --soft: #f8bbd0;
  --gold: #d4af37;
  --ink: #333;
  --muted: #81747a;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh;
  display: grid; place-items: center;
  padding: 22px;
  background: linear-gradient(135deg, #fff8fb, #f9e2eb 55%, #f5d5dc);
  font-family: 'Cairo', sans-serif;
  color: var(--ink);
  position: relative; overflow: hidden;
}
body:before, body:after {
  content: ''; position: fixed; border-radius: 50%;
  border: 1px solid #d4af3738; pointer-events: none;
}
body:before { width: 390px; height: 390px; top: -220px; right: -100px; }
body:after { width: 300px; height: 300px; bottom: -180px; left: -60px; }
img { max-width: 100%; height: auto; }

/* ============ 2. Login Card ============ */
.login-card {
  width: min(100%, 440px);
  background: #fff;
  border: 1px solid #f4e3e9;
  border-radius: 26px;
  padding: 38px 40px;
  box-shadow: 0 24px 70px #722d4818;
  position: relative; z-index: 1;
  animation: appear .55s ease;
}
@keyframes appear {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: none; }
}

/* ============ 3. Brand ============ */
.brand {
  display: flex; justify-content: center;
  align-items: center; gap: 10px;
  color: var(--pink); font-size: 1.65rem; font-weight: 800;
}
.login-brand {
  display: flex; flex-direction: column; gap: 0;
}
.login-logo {
  display: block;
  width: 120px; height: 120px;
  max-width: min(160px, 55vw);
  object-fit: contain; margin: 0 auto;
}
.login-brand-name {
  font-size: 1.55rem; line-height: 1.4;
  color: #a82d62;
}
.login-tagline {
  font-size: .78rem; color: #ae8a4e;
  letter-spacing: .08em;
}
.login-card h1 {
  text-align: center; font-size: 1.55rem;
  margin: 24px 0 3px;
}
.intro {
  text-align: center; color: var(--muted);
  font-size: max(14px, .875rem);
  margin: 0 0 27px;
}

/* ============ 4. Fields ============ */
.field { margin: 16px 0; }
.field label {
  display: block; font-weight: 700;
  font-size: max(14px, .875rem);
  margin-bottom: 7px;
}
.input-wrap { position: relative; }
.input-wrap > i {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%); color: #b78596;
}
.field input {
  width: 100%;
  border: 1px solid #eadfe3;
  border-radius: 13px;
  padding: 12px 42px 12px 13px;
  outline: none; background: #fff;
  font: inherit;
  font-size: max(14px, 1rem);
  min-height: 48px;
  transition: border .2s, box-shadow .2s;
}
.field input:focus {
  border-color: #ed9ab5;
  box-shadow: 0 0 0 3px #fce8ef;
}

/* ============ 5. Password Toggle ============ */
.password-toggle {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  border: 0; background: none;
  color: #a38c95; padding: 5px;
  min-height: 48px; min-width: 44px;
  cursor: pointer;
}

/* ============ 6. Submit ============ */
.submit {
  width: 100%;
  border: 0; border-radius: 13px;
  margin-top: 8px; padding: 12px;
  background: linear-gradient(120deg, #e91e63, #ce1653);
  color: #fff;
  font: 700 1rem 'Cairo';
  box-shadow: 0 10px 22px #e91e6330;
  transition: .2s;
  min-height: 48px; cursor: pointer;
}
.submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 25px #e91e6344;
}
.submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============ 7. Error Message ============ */
.error {
  color: #c62828;
  background: #fff1f0;
  border: 1px solid #ffd8d5;
  border-radius: 11px;
  padding: 9px 12px;
  font-size: max(14px, .82rem);
  margin-top: 15px;
  display: none;
}
.error.show { display: block; }

/* ============ 8. Demo Notice ============ */
.demo {
  margin-top: 20px;
  border-radius: 12px;
  background: #fff9e9;
  border: 1px solid #f1e6bd;
  padding: 10px 13px;
  color: #786a41;
  font-size: max(14px, .78rem);
  text-align: center;
}
.demo strong { color: #685622; }

/* ============ 9. Back Link ============ */
.back {
  display: block; text-align: center;
  margin-top: 20px;
  color: #9b6478;
  font-size: max(14px, .86rem);
  text-decoration: none;
  min-height: 48px; padding: 9px;
  transition: color .2s;
}
.back:hover { color: var(--pink); }

/* ============ 10. Responsive ============ */
@media (max-width: 480px) {
  body { padding: 14px; }
  .login-card { padding: 28px 22px; }
  .login-card h1 { margin-top: 14px; font-size: 1.4rem; }
  .intro { margin-bottom: 22px; }
  .login-logo { width: 120px; height: 120px; }
}