/* =============================================================
   DOG&CAT — LOGIN / REGISTER | DARK LUXURY 2026
   ============================================================= */
:root {
  --bg-primary: #0A0A0F;
  --bg-secondary: #111118;
  --bg-card: rgba(18, 18, 26, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --rose-gold: #D4A5A5;
  --rose-dark: #B87B7B;
  --gold: #C9A96E;
  --gold-light: #E8D5A3;
  --ivory: #FFF8F0;
  --text-primary: #F0EAE0;
  --text-secondary: #A89F94;
  --text-muted: #6B6358;
  --text-dim: #3D3832;
  --border-glass: rgba(212, 165, 165, 0.15);
  --border-glass-strong: rgba(212, 165, 165, 0.3);
  --border-gold: rgba(201, 169, 110, 0.3);
  --border-gold-strong: rgba(201, 169, 110, 0.6);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 165, 165, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --snap: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
  height: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(212, 165, 165, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 169, 110, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.login-container {
  width: 100%;
  max-width: 1040px;
  margin: 32px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.login-card {
  display: grid;
  grid-template-columns: 480px 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-elevated);
  animation: cardBounce 0.6s var(--spring) both;
}

@keyframes cardBounce {
  0% { opacity: 0; transform: scale(0.92) translateY(20px); }
  60% { transform: scale(1.02) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.login-visual {
  position: relative;
  background: linear-gradient(135deg, rgba(18, 18, 26, 0.95), rgba(26, 22, 28, 0.85));
  color: var(--ivory);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  overflow: hidden;
  border-right: 1px solid var(--border-glass);
}

.login-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 40%, rgba(212, 165, 165, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(201, 169, 110, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.login-visual::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 180px;
  height: 140px;
  background: url('decoracion/2chihuahuas.png') center/contain no-repeat;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.3));
  opacity: 0.15;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.brand img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-gold);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.brand h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.visual-hero {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  max-width: 360px;
  color: var(--ivory);
}

.visual-sub {
  position: relative;
  z-index: 2;
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 340px;
  line-height: 1.6;
  font-weight: 300;
}

.login-form {
  padding: 52px 48px;
}

.login-form h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ivory);
}

.login-form p.subtitle {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
}

.field {
  margin-bottom: 16px;
  position: relative;
}

.input-wrap {
  position: relative;
}

.input {
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  transition: all 0.2s var(--smooth);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.input::placeholder { color: transparent; }
.input:focus {
  outline: none;
  border-color: var(--border-gold-strong);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 20px rgba(212, 165, 165, 0.08);
  transform: translateY(-1px);
}

.field .label-float {
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 400;
  pointer-events: none;
  transition: all 0.2s var(--spring);
  padding: 0 4px;
}
.field .input:focus + .label-float,
.field .input:not(:placeholder-shown) + .label-float {
  transform: translateY(-28px) translateX(-4px);
  font-size: 11px;
  color: var(--rose-gold);
  background: var(--bg-card);
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid var(--border-glass);
}

.error {
  color: #EF476F;
  font-size: 12px;
  font-weight: 400;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 71, 111, 0.2);
  background: rgba(239, 71, 111, 0.06);
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}
.remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--rose-gold);
}

.small-link {
  color: var(--rose-gold);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.2s var(--smooth);
}
.small-link:hover {
  border-bottom-color: var(--rose-gold);
  color: var(--ivory);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass-strong);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s var(--smooth);
  min-height: 48px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose-dark), var(--rose-gold));
  color: var(--ivory);
  border-color: transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 165, 165, 0.25);
  filter: brightness(1.05);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
}
.btn-outline:hover {
  transform: translateY(-2px);
  border-color: var(--border-gold-strong);
  background: var(--bg-glass-hover);
  color: var(--ivory);
  box-shadow: var(--shadow-soft);
}

.socials {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}
.socials .btn { flex: 1; }

.help {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 999px;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.1);
  animation: ripple 0.6s linear;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(6); opacity: 0; }
}

/* Button success state */
.btn.success {
  background: linear-gradient(135deg, #06D6A0, #0ABD8B) !important;
  color: var(--ivory) !important;
  border-color: transparent !important;
}
.btn.success .label { display: none; }
.btn.success .check { display: inline-block; }
.check { display: none; width: 18px; height: 18px; }

/* Toggle password button */
#togglePass {
  position: absolute;
  right: 14px;
  top: 12px;
  background: transparent;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--smooth);
}
#togglePass:hover {
  background: var(--bg-glass-hover);
  color: var(--rose-gold);
  border-color: var(--border-gold-strong);
}

@media (max-width: 880px) {
  .login-card { grid-template-columns: 1fr; }
  .login-visual { min-height: 200px; padding: 32px; }
  .login-visual::after { width: 120px; height: 100px; opacity: 0.08; }
  .login-form { padding: 28px; }
  .login-container { padding: 12px; margin: 16px; }
  .visual-hero { font-size: 28px; }
  .login-visual { border-right: none; border-bottom: 1px solid var(--border-glass); }
}

@media (max-width: 480px) {
  .login-form { padding: 20px; }
  .btn { font-size: 13px; padding: 12px 16px; }
  .socials { flex-direction: column; }
  .row { flex-wrap: wrap; }
}
