/* ============================================================
   auth.css — Estilos compartidos para login y registro
   ============================================================ */

:root {
  --pink: #e0338b; --pink-light: #f472b6;
  --teal: #1a6e7e; --teal-dark: #0d3d47;
  --white: #ffffff; --gray: #6b7280; --dark: #1a1a2e;
  --danger: #c0392b; --danger-lt: #fdf0ee;
  --success: #1e7d4f; --success-lt: #e8f5ee;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, #fdf4f9 0%, #e8f6f9 100%);
  min-height: 100vh;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 68px;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--pink);
  box-shadow: 0 2px 24px rgba(224,51,139,0.10);
}
.nav-logo { font-family: 'Bebas Neue', cursive; font-size: 1.7rem; color: var(--pink); letter-spacing: 1px; text-decoration: none; }
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; gap: 0.4rem; list-style: none; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 0.45rem 1.1rem; border-radius: 50px; transition: all 0.22s; color: var(--dark); }
.nav-links a:hover { color: var(--pink); background: rgba(224,51,139,0.08); }
.btn-nav-register { background: var(--pink); color: var(--white) !important; box-shadow: 0 2px 10px rgba(224,51,139,0.25); }
.btn-nav-register:hover { background: var(--pink-light) !important; color: var(--white) !important; }
.btn-nav-login { border: 2px solid var(--teal); color: var(--teal) !important; }
.btn-nav-login:hover { background: var(--teal) !important; color: var(--white) !important; }

/* AUTH CARD */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 88px 1rem 2rem; }
.card { background: var(--white); border-radius: 20px; padding: 2.5rem 2.25rem; width: 100%; box-shadow: 0 12px 40px rgba(224,51,139,0.12), 0 2px 8px rgba(0,0,0,0.05); border-top: 4px solid var(--pink); }
.brand { font-family: 'Bebas Neue', cursive; font-size: 1.8rem; color: var(--pink); letter-spacing: 1px; margin-bottom: 1.5rem; display: block; text-decoration: none; }
.brand span { color: var(--teal); }
.card-title { font-family: 'Bebas Neue', cursive; font-size: 2rem; color: var(--teal-dark); margin-bottom: .3rem; }
.card-sub { font-size: .95rem; color: var(--gray); font-weight: 600; margin-bottom: 1.75rem; }

/* ALERTS */
.alert { padding: .7rem 1rem; border-radius: 10px; font-size: .875rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.alert-err     { background: var(--danger-lt); color: var(--danger); border: 1px solid #e8c0bc; }
.alert-success { background: var(--success-lt); color: var(--success); border: 1px solid #b8dfc8; }

/* FIELDS */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--teal-dark); margin-bottom: .35rem; letter-spacing: .3px; }
.field label .req { color: var(--pink); margin-left: .15rem; }
.field input { width: 100%; padding: .7rem 1rem; border: 2px solid #e5e7eb; border-radius: 12px; font-family: 'Nunito', sans-serif; font-size: .95rem; font-weight: 600; outline: none; transition: border-color .15s; }
.field input:focus { border-color: var(--pink); }
.field .hint { font-size: .75rem; color: var(--gray); margin-top: .3rem; font-weight: 600; }

/* SUBMIT BUTTON */
.btn-submit { width: 100%; padding: .8rem; background: var(--pink); color: #fff; border: none; border-radius: 50px; font-family: 'Nunito', sans-serif; font-size: 1rem; font-weight: 900; cursor: pointer; transition: all .2s; margin-top: .5rem; box-shadow: 0 4px 18px rgba(224,51,139,0.35); letter-spacing: .3px; display: flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-submit:hover { background: var(--pink-light); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(224,51,139,0.45); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* SPINNER */
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* DIVIDER */
.divider { text-align: center; font-size: .85rem; font-weight: 700; color: var(--gray); margin: 1.25rem 0; position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: #e5e7eb; }
.divider::before { left: 0; }
.divider::after { right: 0; }

/* LINK BUTTON */
.link-btn { display: block; width: 100%; padding: .75rem; background: transparent; border: 2.5px solid var(--teal); border-radius: 50px; font-family: 'Nunito', sans-serif; font-size: .95rem; font-weight: 800; color: var(--teal); text-align: center; text-decoration: none; transition: all .2s; }
.link-btn:hover { background: var(--teal); color: #fff; }

/* GOOGLE BUTTON */
.btn-google { display: flex; align-items: center; justify-content: center; gap: .65rem; width: 100%; padding: .75rem; background: #fff; border: 2px solid #dadce0; border-radius: 50px; font-family: 'Nunito', sans-serif; font-size: .95rem; font-weight: 700; color: #3c4043; text-decoration: none; transition: all .2s; cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,0.08); margin-bottom: .6rem; }
.btn-google:hover { background: #f8f9fa; border-color: #aaa; box-shadow: 0 2px 10px rgba(0,0,0,0.12); }
.btn-google svg { flex-shrink: 0; }

/* LINKEDIN BUTTON */
.btn-linkedin { display: flex; align-items: center; justify-content: center; gap: .65rem; width: 100%; padding: .75rem; background: #0077b5; border: 2px solid #0077b5; border-radius: 50px; font-family: 'Nunito', sans-serif; font-size: .95rem; font-weight: 700; color: #fff; text-decoration: none; transition: all .2s; cursor: pointer; box-shadow: 0 1px 6px rgba(0,119,181,0.25); }
.btn-linkedin:hover { background: #005e93; border-color: #005e93; box-shadow: 0 2px 10px rgba(0,119,181,0.4); }
.btn-linkedin svg { flex-shrink: 0; }
