UI: Compact AuthGuard with side-by-side buttons and shorter promotion messages
This commit is contained in:
@ -60,7 +60,7 @@ function goToLogin() {
|
||||
{{ props.actionLabel }}
|
||||
</button>
|
||||
<button class="secondary-btn" @click="goToLogin">
|
||||
{{ t('auth.loginLink') || 'Ya tengo cuenta' }}
|
||||
{{ t('auth.loginTab') || 'Entrar' }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@ -97,43 +97,44 @@ function goToLogin() {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 50;
|
||||
padding: 1.5rem;
|
||||
background: rgba(var(--bg-primary-rgb), 0.2);
|
||||
padding: 1rem;
|
||||
background: rgba(var(--bg-primary-rgb), 0.4);
|
||||
backdrop-filter: blur(4px);
|
||||
}
|
||||
|
||||
.auth-card {
|
||||
max-width: 360px;
|
||||
max-width: 320px;
|
||||
width: 100%;
|
||||
padding: 2.25rem 1.75rem;
|
||||
border-radius: 2rem;
|
||||
padding: 1.5rem 1.25rem;
|
||||
border-radius: 1.5rem;
|
||||
text-align: center;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 1.25rem;
|
||||
gap: 1rem;
|
||||
animation: float 6s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.auth-icon-circle {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
background: var(--active-color);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 0.5rem;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.auth-icon-circle .material-icons {
|
||||
font-size: 2rem;
|
||||
font-size: 1.5rem;
|
||||
color: #101820;
|
||||
}
|
||||
|
||||
.auth-title {
|
||||
font-size: 1.25rem;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 900;
|
||||
color: var(--text-primary);
|
||||
margin: 0;
|
||||
@ -141,33 +142,35 @@ function goToLogin() {
|
||||
}
|
||||
|
||||
.auth-message {
|
||||
font-size: 0.9375rem;
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.5;
|
||||
line-height: 1.4;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* ── ACTIONS ── */
|
||||
.auth-actions {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
display: grid;
|
||||
grid-template-columns: 1.2fr 1fr;
|
||||
gap: 0.5rem;
|
||||
width: 100%;
|
||||
margin-top: 0.5rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.primary-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
padding: 1rem;
|
||||
gap: 0.4rem;
|
||||
padding: 0.75rem 0.5rem;
|
||||
background: var(--active-color);
|
||||
color: #101820;
|
||||
border: none;
|
||||
border-radius: 1rem;
|
||||
border-radius: 0.75rem;
|
||||
font-weight: 800;
|
||||
font-size: 0.85rem;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
||||
}
|
||||
|
||||
@ -177,14 +180,15 @@ function goToLogin() {
|
||||
}
|
||||
|
||||
.secondary-btn {
|
||||
padding: 0.75rem;
|
||||
background: transparent;
|
||||
padding: 0.75rem 0.5rem;
|
||||
background: rgba(255,255,255,0.05);
|
||||
color: var(--text-primary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 1rem;
|
||||
border: 1px solid rgba(255,255,255,0.2);
|
||||
border-radius: 0.75rem;
|
||||
font-weight: 700;
|
||||
font-size: 0.875rem;
|
||||
font-size: 0.8rem;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user