/* ==========================================================================
   SANLILAS - CUSTOMER AUTHENTICATION SUITE STYLESHEET
   Aesthetic: Private Boutique Access, Liquid Glass Card, Editorial Precision
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --auth-marfil: #FAF7F2;
  --auth-chocolate: #2C211B;
  --auth-cafe-muted: #8A7A6A;
  --auth-champagne: #C8A46A;
  --auth-border: rgba(23, 20, 23, 0.16);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.auth-body {
  background-color: var(--auth-marfil);
  background-image: radial-gradient(circle at 50% 35%, rgba(142, 111, 174, 0.09), transparent 70%);
  color: var(--auth-chocolate);
  font-family: var(--font-sans);
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-header-minimal {
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-brand-link {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  letter-spacing: 0.18em;
  color: var(--auth-chocolate);
  text-decoration: none;
}

.auth-main-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 4rem;
  flex: 1;
}

.auth-glass-card {
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.60);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.04);
  max-width: 460px;
  width: 100%;
  padding: 3rem 2.5rem;
  box-sizing: border-box;
  text-align: left;
}

.auth-card-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.auth-logo-img {
  max-width: 140px;
  height: auto;
  margin-bottom: 1.2rem;
}

.auth-card-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--auth-chocolate);
  margin: 0 0 0.4rem 0;
}

.auth-card-subtitle {
  font-size: 0.88rem;
  color: var(--auth-cafe-muted);
  margin: 0;
}

.auth-form-group {
  margin-bottom: 1.4rem;
}

.auth-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--auth-chocolate);
  margin-bottom: 0.4rem;
}

.auth-input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--auth-chocolate);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}

.auth-input:focus {
  border-color: var(--auth-chocolate);
  box-shadow: 0 0 0 3px rgba(23, 20, 23, 0.08);
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--auth-cafe-muted);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.password-toggle-btn:hover {
  color: var(--auth-chocolate);
}

.auth-submit-btn {
  width: 100%;
  padding: 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--auth-chocolate);
  color: var(--auth-marfil);
  border: 1px solid var(--auth-champagne);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 0.5rem;
}

.auth-submit-btn:hover {
  background: var(--auth-champagne);
  color: #fff;
  box-shadow: 0 10px 25px rgba(142, 111, 174, 0.3);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-submit-btn-ghost {
  width: 100%;
  padding: 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  color: var(--auth-champagne);
  border: 1px solid var(--auth-champagne);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.auth-submit-btn-ghost:hover:not(:disabled) {
  background: var(--auth-champagne);
  color: #fff;
}

.auth-submit-btn-ghost:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-switch-link {
  text-align: center;
  margin-top: 1.8rem;
  font-size: 0.88rem;
  color: var(--auth-cafe-muted);
}

.auth-switch-btn {
  color: var(--auth-chocolate);
  font-weight: 700;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-sans);
}

.auth-switch-btn:hover {
  text-decoration: underline;
}

.auth-alert-msg {
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  display: none;
}

.auth-alert-msg.is-error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.auth-alert-msg.is-success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #6EE7B7;
}

@media (max-width: 576px) {
  .auth-glass-card {
    padding: 2.2rem 1.6rem;
  }
}
