.auth-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-card__legal {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 165, 116, 0.12);
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: rgba(31, 31, 35, 0.9);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 30px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form label {
    color: var(--text-secondary);
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    user-select: none;
}

.auth-remember input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--accent);
    cursor: pointer;
}

.auth-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

.auth-link a {
    color: var(--accent);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-google:hover {
    background: #f8fafc;
    box-shadow: var(--shadow-sm);
}

.btn-google__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: -16px 0 20px;
}

.auth-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.auth-steps__item {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.auth-steps__item--active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(99, 102, 241, 0.12);
}

.auth-steps__item--done {
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.auth-success {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.auth-field-error {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #fca5a5;
}

.auth-forgot {
    margin: 8px 0 0;
    text-align: right;
    font-size: 0.85rem;
}

.auth-forgot a {
    color: var(--accent);
    text-decoration: none;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

.input--code {
    font-size: 1.5rem;
    letter-spacing: 0.35em;
    text-align: center;
    font-weight: 600;
}

.auth-card--register {
    max-width: 480px;
}

.auth-form__location {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.auth-form__location-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.auth-form__required {
    color: var(--accent);
    font-weight: 500;
}

.auth-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-form select.input--select {
    appearance: none;
    cursor: pointer;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.auth-form select.input--select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 520px) {
    .auth-form__row {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------------------------------------------
   Completar perfil (Google OAuth — país y ciudad)
   ----------------------------------------------------------------------------- */

.auth-container--complete {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.18), transparent),
        var(--bg-primary, #0f0f10);
}

.auth-card--complete {
    max-width: 460px;
    padding: 36px 40px 40px;
}

.auth-card--complete h1 {
    margin-bottom: 10px;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
}

.auth-complete__hero {
    text-align: center;
    margin-bottom: 28px;
}

.auth-complete__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: var(--accent);
}

.auth-complete__lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.auth-card--complete .auth-steps {
    margin-bottom: 20px;
}

.auth-alert {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.45;
}

.auth-alert--error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.auth-form--complete {
    gap: 22px;
}

.auth-form__location--highlight {
    padding: 18px 18px 16px;
    border-color: rgba(99, 102, 241, 0.25);
    background: linear-gradient(
        165deg,
        rgba(99, 102, 241, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 55%
    );
}

.auth-form__location-hint {
    margin: -4px 0 14px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-secondary);
    opacity: 0.9;
}

.auth-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-form__field label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.btn-primary--full {
    width: 100%;
    margin-top: 4px;
    padding: 14px 20px;
    font-size: 1rem;
}

.auth-legal {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.45;
    user-select: none;
}

.auth-legal input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.auth-legal a {
    color: var(--accent);
}

.auth-google-legal {
    margin: 10px 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: center;
    color: var(--text-secondary);
}

.auth-google-legal a {
    color: var(--accent);
}

.auth-legal-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: -12px 0 20px;
}

.auth-legal-links {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-legal-links a {
    display: block;
    text-align: center;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-legal-links a:hover {
    background: rgba(167, 139, 250, 0.08);
}

.auth-legal-note {
    text-align: center;
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-legal-note a {
    color: var(--text-secondary);
    text-decoration: underline;
}

@media (max-width: 520px) {
    .auth-card--complete {
        padding: 28px 22px 32px;
    }

    .auth-card--complete h1 {
        font-size: 1.28rem;
    }
}
