/* Shared between login.html and registro.html */

/* ── Page layout ── */
.login-wrap {
  min-height: 88vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 4rem 5vw;
}

/* ── Card ── */
.login-card {
  background: rgba(30,30,46,0.6);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 4px;
  padding: 2.8rem 3rem;
  max-width: 460px; width: 100%;
  position: relative; overflow: hidden;
  backdrop-filter: blur(10px);
  animation: fadeUp 0.8s 0.1s both;
}
.login-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* ── Step indicator ── */
.step-indicator {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; margin-bottom: 2rem;
}
.step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.4);
  transition: background 0.3s, box-shadow 0.3s;
}
.step-dot.active {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201,168,76,0.5);
}
.step-dot.done { background: var(--turq); border-color: var(--turq-light); }
.step-line { width: 40px; height: 1px; background: rgba(201,168,76,0.2); }

/* ── Card header ── */
.card-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--turq-light);
  text-align: center; margin-bottom: 0.5rem;
}
.card-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.3rem; color: var(--gold);
  text-align: center; margin-bottom: 0.5rem;
}
.card-subtitle {
  font-size: 0.95rem; font-weight: 300;
  color: var(--muted); text-align: center;
  line-height: 1.6; margin-bottom: 2rem;
}
.card-divider {
  width: 80px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.4), transparent);
  margin: 0 auto 1.8rem;
}

/* ── Form ── */
.form-group { margin-bottom: 1.4rem; }

label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.5rem;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  background: rgba(10,10,15,0.7);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem; color: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="email"]:focus,
input[type="text"]:focus {
  border-color: rgba(201,168,76,0.7);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}
input::placeholder { color: rgba(160,152,128,0.5); }

/* ── Primary button ── */
.btn-primary {
  display: flex; align-items: center; justify-content: center;
  gap: 0.6rem; width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--deep);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none; border-radius: 2px;
  padding: 1.1rem; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.2s;
  box-shadow: 0 4px 30px rgba(201,168,76,0.3);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(201,168,76,0.5);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Messages ── */
.msg {
  display: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; text-align: center;
  padding: 0.75rem 1rem; border-radius: 2px;
  margin-bottom: 1.2rem; line-height: 1.5;
}
.msg.show { display: block; }
.msg-error {
  background: rgba(180,60,60,0.15);
  border: 1px solid rgba(180,60,60,0.35);
  color: #f08080;
}
.msg-success {
  background: rgba(27,140,160,0.12);
  border: 1px solid rgba(78,197,216,0.3);
  color: var(--turq-light);
}

/* ── Spinner ── */
.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(5,13,26,0.3);
  border-top-color: var(--deep);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Footer ── */
footer p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem; letter-spacing: 0.2em;
  color: var(--muted); text-transform: uppercase;
}
footer a { color: var(--turq-light); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .login-card { padding: 2rem 1.6rem; }
}
