/* BeYondSpoke.Ai — landing pubblica (VTO-061).
   Port VERBATIM della home beyondspoke (`web/app/index.php`, CSS inline) per
   resa identica: video bg + ENTER + info modal trilingue + login a comparsa +
   music toggle. Cambia solo che il form autentica sulla sessione luca-vto. */

body.login-landing,
html {
    height: 100%;
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
    background-color: #000;
    color: #fff;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* z-index 0 (non -1): il body di luca-vto ha sfondo opaco (app-ui.css),
       con -1 il video finirebbe dietro lo sfondo e resterebbe invisibile. */
    z-index: 0;
    overflow: hidden;
    background-color: black;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.logo {
    width: 99%;
    max-width: 999px;
    height: auto;
    margin-bottom: 40px;
}

.enter-btn {
    padding: 12px 24px;
    font-size: 24px;
    color: white;
    background-color: transparent;
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bs-pulse 1.6s ease-in-out infinite;
}

.enter-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@keyframes bs-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.info-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.info-btn:hover {
    transform: scale(1.15);
}

.modal-content {
    background-color: rgba(33, 37, 41, 0.95) !important;
    color: #fff;
    /* VTO-061: app-ui.css imposta --bs-modal-border-color su --app-border (grigio
       chiaro) → bordo bianco sul modal scuro, assente nell'originale beyondspoke.
       Neutralizzato qui (landing.css carica dopo app-ui.css). */
    border-color: transparent;
}

.modal-body {
    font-size: 0.9rem;
    line-height: 1.6;
}

.modal-body ol {
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 10px;
}

.nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-bottom: 2px solid transparent;
    background-color: transparent;
    padding: 8px 16px;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: white;
}

.nav-tabs .nav-link.active {
    color: white;
    background-color: transparent;
    border-bottom: 2px solid white;
}

.rtl-content {
    direction: rtl;
    text-align: right;
}

#login-form-container {
    display: none;
    width: 100%;
    max-width: 400px;
}

.tw_login_form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--bs-border-radius);
}

.tw_login_form input {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
}

.tw_login_form input:focus {
    background-color: rgba(255, 255, 255, 0.28);
    border-color: white;
    color: white;
    box-shadow: none;
}

.tw_login_form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.tw_login_form label {
    color: white;
}

.tw_login_form .auth-alert--error {
    background-color: rgba(220, 53, 69, 0.85);
    color: #fff;
    border: none;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.tw_spacer {
    height: 15px;
}

.tw_center {
    text-align: center;
}

#music-toggle {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

#music-toggle:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Adattamento grafico alla landing scura: il bottone "Accedi" e il link
   "Password dimenticata?" qui NON devono avere alcuna traccia di blu (in app-ui.css
   .btn-login usa --app-primary-fill blu, su tutti gli stati con !important). Override
   scoped a body.login-landing → specificità (0,2,0) > base e cascade dopo app-ui.css.
   Vale SOLO su questa pagina (landing.css caricata solo da login.php). */
body.login-landing .btn-login,
body.login-landing .btn-login:hover,
body.login-landing .btn-login:focus,
body.login-landing .btn-login:focus-visible,
body.login-landing .btn-login:active,
body.login-landing .btn-login:disabled,
body.login-landing .btn-login.disabled,
body.login-landing .btn-login[aria-disabled="true"] {
    background: transparent !important;
    border: 1px solid #fff !important;
    color: #fff !important;
    box-shadow: none !important;
}

body.login-landing .btn-login:hover,
body.login-landing .btn-login:focus-visible,
body.login-landing .btn-login:active {
    background: rgba(255, 255, 255, 0.1) !important;
}

body.login-landing .btn-login:disabled,
body.login-landing .btn-login.disabled,
body.login-landing .btn-login[aria-disabled="true"] {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* "Password dimenticata?" — grigio chiaro neutro, niente blu (default link Bootstrap), senza sottolineatura. */
body.login-landing .tw_login_form a.small,
body.login-landing .tw_login_form a.small:visited {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
}

body.login-landing .tw_login_form a.small:hover,
body.login-landing .tw_login_form a.small:focus {
    color: rgba(255, 255, 255, 0.85) !important;
}
