/* Login MenuGo — fondo dinámico y figuras geométricas (estilo gdapadron) */

.page-login {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(-45deg, #6b7280, #78716c, #78350f, #d97706, #f59e0b, #9ca3af);
    background-size: 400% 400%;
    animation: mgGradientShift 14s ease infinite;
}

.page-login::before,
.page-login::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    opacity: 0.5;
    animation: mgOrbFloat 18s ease-in-out infinite;
}

.page-login::before {
    width: min(55vw, 420px);
    height: min(55vw, 420px);
    top: -12%;
    right: -8%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.85) 0%, transparent 70%);
}

.page-login::after {
    width: min(50vw, 380px);
    height: min(50vw, 380px);
    bottom: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(156, 163, 175, 0.75) 0%, transparent 70%);
    animation-delay: -6s;
}

@keyframes mgGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes mgOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(4%, -3%) scale(1.05); }
    66% { transform: translate(-3%, 2%) scale(0.97); }
}

@keyframes mgFigureFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-22px) rotate(8deg); }
}

@keyframes mgFigureDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18px, -14px) scale(1.08); }
}

@keyframes mgFigureSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes mgFigurePulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(1.12); }
}

.login-bg-shine {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(255, 200, 100, 0.25), transparent 50%);
}

.login-figures {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.login-figure {
    position: absolute;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(2px);
}

.login-figure--ring {
    width: clamp(140px, 22vw, 220px);
    height: clamp(140px, 22vw, 220px);
    border-radius: 50%;
    top: 12%;
    left: 8%;
    border-width: 3px;
    border-color: rgba(255, 255, 255, 0.45);
    background: transparent;
    animation: mgFigureSpin 28s linear infinite, mgFigureDrift 12s ease-in-out infinite;
}

.login-figure--ring-inner {
    width: clamp(70px, 12vw, 110px);
    height: clamp(70px, 12vw, 110px);
    border-radius: 50%;
    bottom: 18%;
    right: 10%;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.4);
    background: transparent;
    animation: mgFigureSpin 20s linear infinite reverse, mgFigureFloat 9s ease-in-out infinite;
}

.login-figure--doc {
    width: clamp(52px, 8vw, 72px);
    height: clamp(68px, 10vw, 92px);
    border-radius: 10px 10px 4px 4px;
    top: 22%;
    right: 14%;
    border-color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    animation: mgFigureFloat 7s ease-in-out infinite;
    animation-delay: -2s;
}

.login-figure--doc::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 2px;
    box-shadow: 0 8px 0 rgba(255, 255, 255, 0.3), 0 16px 0 rgba(255, 255, 255, 0.2);
}

.login-figure--circle {
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.login-figure--c1 {
    width: 48px;
    height: 48px;
    bottom: 28%;
    left: 18%;
    animation: mgFigureDrift 11s ease-in-out infinite;
}

.login-figure--c2 {
    width: 28px;
    height: 28px;
    top: 55%;
    left: 6%;
    animation: mgFigureFloat 6s ease-in-out infinite;
    animation-delay: -1s;
}

.login-figure--c3 {
    width: 36px;
    height: 36px;
    top: 8%;
    right: 28%;
    animation: mgFigurePulse 5s ease-in-out infinite;
}

.login-figure--square {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    bottom: 12%;
    right: 22%;
    transform: rotate(15deg);
    animation: mgFigureFloat 8s ease-in-out infinite, mgFigureSpin 24s linear infinite;
    animation-delay: -3s, 0s;
}

.login-figure--dots {
    width: 64px;
    height: 64px;
    border: none;
    background: transparent;
    top: 42%;
    right: 6%;
    animation: mgFigureDrift 10s ease-in-out infinite;
}

.login-figure--dots::before,
.login-figure--dots::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    animation: mgFigurePulse 4s ease-in-out infinite;
}

.login-figure--dots::before {
    top: 8px;
    left: 8px;
    box-shadow: 22px 0 0 rgba(255, 255, 255, 0.45), 0 22px 0 rgba(255, 255, 255, 0.4), 22px 22px 0 rgba(255, 255, 255, 0.35);
}

.login-figure--dots::after {
    bottom: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    animation-delay: -2s;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 25px 50px rgba(82, 82, 82, 0.28);
}

.login-brand { text-align: center; margin-bottom: 1.5rem; }
.login-brand-logo {
    display: block;
    margin: 0 auto;
    max-width: var(--brand-logo-max-width);
    max-height: var(--brand-logo-max-height);
    object-fit: contain;
}

.login-subtitle {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    color: #78716c;
    line-height: 1.5;
}

.login-subtitle p { margin: 0; }
.login-subtitle p + p { margin-top: 0.35rem; }

.login-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
}

.login-footer p {
    margin: 0;
}

.login-mobipos-logo {
    display: block;
    width: auto;
    max-width: min(100px, 36vw);
    height: auto;
    margin: 0 auto 0.5rem;
    object-fit: contain;
    opacity: 0.9;
}

.login-footer a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
    .page-login,
    .page-login::before,
    .page-login::after,
    .login-figure,
    .login-figure--dots::before,
    .login-figure--dots::after {
        animation: none;
    }

    .page-login {
        background-size: 100% 100%;
        background-position: 50% 50%;
    }
}
