/* ══════════════════════════════════════════════════════════
   vl-page.css  —  Shared styles for VoxLibri standalone pages
   (login, maintenance, landing, etc.)
   ══════════════════════════════════════════════════════════ */

/* ── Animated gradient background ── */
@keyframes aurora {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
}
body.vl-page {
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(79,70,229,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(99,102,241,0.1) 0%, transparent 60%),
        radial-gradient(ellipse 90% 50% at 50% 50%, rgba(30,27,75,0.4) 0%, transparent 70%),
        linear-gradient(135deg, #0c0a1a 0%, #111827 40%, #0f172a 70%, #0c0a1a 100%);
    background-size: 200% 200%, 200% 200%, 100% 100%, 100% 100%;
    animation: aurora 20s ease-in-out infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* ── Noise overlay ── */
body.vl-page::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 0;
}

/* ── Floating waveform bars ── */
@keyframes wave1 { 0%,100%{height:14px} 50%{height:32px} }
@keyframes wave2 { 0%,100%{height:22px} 50%{height:10px} }
@keyframes wave3 { 0%,100%{height:10px} 50%{height:36px} }
@keyframes wave4 { 0%,100%{height:26px} 50%{height:14px} }
@keyframes wave5 { 0%,100%{height:18px} 50%{height:30px} }

.vl-waves {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.35;
}
.vl-waves-l { left: 32px; }
.vl-waves-r { right: 32px; }

.vl-wave-bar {
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(to top, rgba(99,102,241,0.4), rgba(129,140,248,0.08));
}
.vl-wave-bar:nth-child(1)  { animation: wave1 2.4s ease-in-out infinite; }
.vl-wave-bar:nth-child(2)  { animation: wave2 1.8s ease-in-out infinite 0.1s; }
.vl-wave-bar:nth-child(3)  { animation: wave3 2.2s ease-in-out infinite 0.2s; }
.vl-wave-bar:nth-child(4)  { animation: wave4 2.6s ease-in-out infinite 0.15s; }
.vl-wave-bar:nth-child(5)  { animation: wave5 2.0s ease-in-out infinite 0.3s; }
.vl-wave-bar:nth-child(6)  { animation: wave1 2.8s ease-in-out infinite 0.25s; }
.vl-wave-bar:nth-child(7)  { animation: wave3 1.6s ease-in-out infinite 0.35s; }

/* ── Logo glow pulse ── */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(99,102,241,0.3),
            0 0 40px rgba(99,102,241,0.15),
            0 0 60px rgba(99,102,241,0.05);
    }
    50% {
        box-shadow:
            0 0 25px rgba(99,102,241,0.5),
            0 0 50px rgba(99,102,241,0.2),
            0 0 80px rgba(99,102,241,0.08);
    }
}
.vl-logo {
    display: inline-flex;
    width: 80px;
    height: 80px;
    background: rgba(79,70,229,0.85);
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: glow-pulse 4s ease-in-out infinite;
}
.vl-logo svg {
    width: 40px;
    height: 40px;
    color: rgba(255,255,255,0.9);
    stroke: currentColor;
    fill: none;
}

/* ── Entrance animations ── */
@keyframes card-rise {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes logo-arrive {
    from { opacity: 0; transform: translateY(-16px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.vl-anim-logo   { animation: logo-arrive 0.7s cubic-bezier(0.16,1,0.3,1) both; }
.vl-anim-title   { animation: fade-up 0.6s cubic-bezier(0.16,1,0.3,1) 0.15s both; }
.vl-anim-sub     { animation: fade-up 0.6s cubic-bezier(0.16,1,0.3,1) 0.25s both; }
.vl-anim-card    { animation: card-rise 0.8s cubic-bezier(0.16,1,0.3,1) 0.3s both; }
.vl-anim-footer  { animation: fade-up 0.5s cubic-bezier(0.16,1,0.3,1) 0.6s both; }

/* ── Glass card ── */
.vl-card {
    position: relative;
    background: linear-gradient(
        145deg,
        rgba(30,27,75,0.6) 0%,
        rgba(17,24,39,0.7) 50%,
        rgba(30,27,75,0.5) 100%
    );
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 20px;
    padding: 32px;
    box-shadow:
        0 8px 40px rgba(0,0,0,0.5),
        0 1px 0 rgba(255,255,255,0.05) inset;
}
/* Corner accents */
.vl-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 40px; height: 40px;
    border-top: 1px solid rgba(99,102,241,0.3);
    border-left: 1px solid rgba(99,102,241,0.3);
    border-radius: 20px 0 0 0;
    pointer-events: none;
}
.vl-card::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 40px; height: 40px;
    border-bottom: 1px solid rgba(99,102,241,0.3);
    border-right: 1px solid rgba(99,102,241,0.3);
    border-radius: 0 0 20px 0;
    pointer-events: none;
}
/* Top accent line */
.vl-card-accent {
    position: absolute;
    top: 0; left: 32px; right: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.35), transparent);
}

/* ── Input ── */
.vl-input-wrap {
    position: relative;
    margin-bottom: 0;
}
.vl-input-wrap .vl-lock-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(156,163,175,0.5);
}
.vl-input-wrap .vl-lock-icon svg {
    width: 16px; height: 16px;
    stroke: currentColor; fill: none;
}
.vl-input {
    width: 100%;
    padding: 14px 16px 14px 42px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}
.vl-input::placeholder { color: rgba(156,163,175,0.5); }
.vl-input:focus {
    border-color: rgba(99,102,241,0.6);
    box-shadow:
        0 0 0 3px rgba(99,102,241,0.15),
        0 0 24px rgba(99,102,241,0.08);
    background: rgba(255,255,255,0.06);
}

/* ── Button ── */
.vl-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 14px 0;
    margin-top: 20px;
    background: rgba(79,70,229,0.9);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(79,70,229,0.3);
}
.vl-btn:hover:not(:disabled) {
    background: rgba(99,102,241,0.95);
    box-shadow: 0 6px 28px rgba(79,70,229,0.4);
    transform: translateY(-1px);
}
.vl-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
/* Shine sweep */
.vl-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}
.vl-btn:hover:not(:disabled)::after { left: 100%; }

/* ── Subtitle decorations ── */
.vl-subtitle-line {
    display: block;
    width: 32px;
    height: 1px;
}
.vl-subtitle-line-l {
    background: linear-gradient(to right, transparent, rgba(99,102,241,0.4));
}
.vl-subtitle-line-r {
    background: linear-gradient(to left, transparent, rgba(99,102,241,0.4));
}

/* ── Error box ── */
.vl-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    background: rgba(153,27,27,0.15);
    border: 1px solid rgba(153,27,27,0.35);
    border-radius: 12px;
    color: #fca5a5;
    font-size: 14px;
}

/* ── Hide waves on small screens ── */
@media (max-width: 1023px) {
    .vl-waves { display: none; }
}

/* ── Scroll variant for multi-section pages (landing) ── */
body.vl-page.vl-page--scroll {
    overflow-y: auto;
    display: block;
}
