/* Página de cuenta: registro / inicio de sesión */
.auth-main { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 20px 60px; }
.auth-card {
  width: min(440px, 100%); padding: 30px 30px 26px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(24, 28, 44, .88), rgba(15, 18, 29, .9));
  border: 1px solid var(--line-strong); backdrop-filter: blur(16px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(168, 85, 247, .08) inset;
  animation: pop .6s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }

.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 13px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); margin-bottom: 26px; }
.tabs button { position: relative; z-index: 1; background: none; border: 0; color: var(--muted); font: 600 14px 'Inter', sans-serif; padding: 10px 6px; cursor: pointer; transition: color .25s; }
.tabs button.on { color: #fff; }
.tab-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: linear-gradient(135deg, #7c3aed, #a855f7); box-shadow: 0 8px 20px -8px rgba(124, 58, 237, .9); transition: transform .35s var(--ease); }
.tabs.login .tab-ind { transform: translateX(100%); }

.auth-card h1 { font-size: 28px; font-weight: 700; }
.auth-sub { color: var(--muted); font-size: 14.5px; margin: 8px 0 22px; }
.plan-aviso { margin-bottom: 18px; padding: 10px 14px; border-radius: 12px; font-size: 14px; color: #ddd0ff; background: rgba(124, 58, 237, .14); border: 1px solid rgba(168, 85, 247, .35); }

.f { display: block; margin-bottom: 16px; }
.f > span { display: block; font-size: 13px; font-weight: 500; color: #b0b6cc; margin-bottom: 7px; }
.f input, .pw input {
  width: 100%; padding: 12px 14px; border-radius: 12px; font: 400 15px 'Inter', sans-serif; color: var(--text);
  background: rgba(6, 8, 13, .7); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s;
}
.f input::placeholder { color: #565c72; }
.f input:hover { border-color: var(--line-strong); }
.f input:focus { outline: none; border-color: rgba(168, 85, 247, .8); box-shadow: 0 0 0 3px rgba(124, 58, 237, .28); }
.f input.bad { border-color: rgba(251, 113, 133, .8); box-shadow: 0 0 0 3px rgba(251, 113, 133, .15); }
.pw { position: relative; }
.pw input { padding-right: 46px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); border-radius: 9px; cursor: pointer; }
.pw button:hover { color: #fff; background: rgba(255, 255, 255, .06); }

.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 9px; }
.meter i { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .09); transition: background .3s; }
.meter[data-s="1"] i:nth-child(-n+1) { background: #fb7185; }
.meter[data-s="2"] i:nth-child(-n+2) { background: #fbbf24; }
.meter[data-s="3"] i:nth-child(-n+3) { background: #a3e635; }
.meter[data-s="4"] i { background: #34d399; }
.hint { display: block; min-height: 18px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #b0b6cc; margin: 4px 0 16px; cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: #a855f7; flex-shrink: 0; }

.error { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; font-size: 14px; color: #fecdd3; background: rgba(251, 113, 133, .12); border: 1px solid rgba(251, 113, 133, .4); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.btn[disabled] { opacity: .6; pointer-events: none; }

.or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: #6f768c; font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.fine { text-align: center; font-size: 12.5px; color: #6f768c; margin-top: 16px; }

/* En modo "iniciar sesión" se ocultan los campos de registro */
.auth-card.login .only-registro { display: none; }
@media (max-width: 480px) { .auth-card { padding: 24px 20px; } }
