﻿

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

a {
  text-decoration: none;
}

.logo-logista {
    max-width: 150px !important;
    margin-top: 16px;
    margin-bottom: 24px;
    align-self: flex-start;
    margin-left: 40px;
}

.titolo-login {
    text-align: center;
    color: #212126;
    font-family: Inter;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.sottotitolo-login {
    text-align: center;
    color: #8C8C99;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: -15px;
}

.testo {
    color: #212126;
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    width: 100%;
}

.form-control {
    display: flex;
    height: 48px;
    padding: 0 14px 0 45px; /* spazio a sinistra per l'icona */
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: #F2F2F5;
    border: none;
    box-shadow: none;
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-icon {
    position: absolute;
    left: 14px;
    top: 67%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 2;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    font-size: 12px;
}

.remember-me input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1.5px solid #E0E0E5;
    background: #FFF;
    cursor: pointer;
    margin: 0;
    position: relative;
}

    .remember-me input[type="checkbox"]:checked {
        background: #2F27FF;
        border-color: #2F27FF;
    }

        .remember-me input[type="checkbox"]:checked::after {
            content: "";
            position: absolute;
            left: 4px;
            top: 1px;
            width: 4px;
            height: 8px;
            border: solid #FFF;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

.remember-me span {
    position: relative;
    top: -3px;
    color: #212126;
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.remember-me-forgot {
    color: #2800FF;
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}


.main {
    background-image: url('../img/bg-hero.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 105vw auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}


.help {
    display: flex;
    padding: 80px;
    flex-direction: column;
    align-items: flex-start;
    background: #F5F5F7;
    margin-top: 50px;
}

.supporto {
    color: #FC4C02;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 2px;
}

.supporto-title {
    color: #212126;
    font-family: Inter;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.supporto-subtitle {
    color: #8C8C99;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.contacts-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.contact-card {
    display: flex;
    height: 180px;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid #E0E0E5;
    background: #FFF;
    margin-top: 30px;
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    box-sizing: border-box;
}

.contact-title {
    color: #212126;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F3EEFF;
    color: #6C4CFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.contact-label {
    color: #8C8C99;
    font-family: Inter;
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.4px;
}

.contact-info a {
    color: #2800FF;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

.app {
    display: flex;
    width: 100%;
    padding: 64px 80px;
    justify-content: center;
    align-items: center;
    gap: 64px;
    background: #FC4C02;
}

.app-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
}

.app-card-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    flex: 1 0 0;
    margin-top: 20px;
}

.app-card-right {
    display: flex;
    flex-direction: column;
    margin-top: -20px;
}

.app-title {
    color: #FFF;
    font-family: Inter;
    font-size: 55px;
    font-style: normal;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: -1.4px;
}

.app-subtitle {
    color: #FFF;
    font-family: Inter;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
}

.app-loghi {
    display: flex;
    height: 100px;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.app-divider {
    height: 1px;
    align-self: stretch;
    color: white;
}

.section-footer {
    display: flex;
    padding: 60px 80px 40px 80px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    background: #1C1C21;
    width: 100%;
}

.section-footer-container {
    display: flex;
    width: 100%;
    height: 273px;
    justify-content: space-between;
    align-items: flex-start;
}

.section-footer-card:first-child,
.section-footer-card:last-child {
    flex: 1.5;
}

.section-footer-card:not(:first-child):not(:last-child) {
    flex: 1;
}

.section-footer-card {
    display: flex;
    height: 200px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    flex-shrink: 0;
}

.section-footer-title {
    color: #FFF;
    font-family: Inter;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 1px;
}

.section-footer-subtitle {
    color: #FFF;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.section-footer-testo {
    color: #B2B2B8;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.section-footer-testoapp {
    color: #B2B2B8;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.section-footer-loghi {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-footer-divider {
    height: 2px;
    align-self: stretch;
    color: #404047;
}

.section-footer-message {
    color: #B2B2B8;
    font-family: Inter;
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


.box-shadow {
    box-shadow: var(--Global-Shadows-MD-A-X, 0) var(--Global-Shadows-MD-A-Y, 4px) var(--Global-Shadows-MD-A-Blur, 8px) var(--Global-Shadows-MD-A-Spread, 3px) var(--Global-Shadows-MD-A-Color, rgba(0, 0, 0, 0.15)), var(--Global-Shadows-MD-B-X, 0) var(--Global-Shadows-MD-B-Y, 1px) var(--Global-Shadows-MD-B-Blur, 3px) var(--Global-Shadows-MD-B-Spread, 0) var(--Global-Shadows-MD-B-Color, rgba(0, 0, 0, 0.30));
}

.mw-400 {
    max-width: 400px !important;
}

.mw-450 {
    max-width: 450px !important;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-top: 75px;
}

.mb-10 {
    margin-bottom: 10vh;
}

.justify-items-center {
    justify-items: center;
}

.btn-logista-gradient {
    display: flex;
    height: 48px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background: #FC4C02;
    border: none;
    color: #FFF;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    width: 100%;
    max-width: 360px;
}

.label-registrati {
    display: flex;
    height: 20px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 360px;
}

.label-registrati-message {
    color: #8C8C99;
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.label-registrati-link {
    color: #2800FF;
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

/*    .btn-logista-gradient:disabled {
        opacity: 0.5;
        cursor: no-drop;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(252, 76, 2, 0.40) -24.68%, rgba(40, 0, 255, 0.40) 100%);
    }

    .btn-logista-gradient::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 3px;
        background: conic-gradient(from var(--angle, 0deg), #FC4C02, #2800FF, #FC4C02);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity .4s ease;
        pointer-events: none;
        animation: btn-ring-spin 5s linear infinite;
    }

    .btn-logista-gradient:hover::before {
        opacity: 1;
    }

    .btn-logista-gradient:hover {
        box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 0 0 4px rgba(255,255,255,.15), 0 6px 18px -6px rgba(40,0,255,.45), 0 4px 12px -4px rgba(252,76,2,.4);
    }

    .btn-logista-gradient:active {
        box-shadow: inset 0 0 0 2px rgba(255,255,255,.4), 0 0 0 3px rgba(255,255,255,.12), 0 4px 12px -6px rgba(40,0,255,.4), 0 3px 8px -4px rgba(252,76,2,.35);
    }

    .btn-logista-gradient:focus-visible {
        outline: 3px solid rgba(40,0,255,.55);
        outline-offset: 3px;
    }

    .btn-logista-gradient:hover::after {
        opacity: .45;
    }*/

/* Loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: wait;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #e0e0e0;
    border-top-color: #2800FF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================= */
/* GENERALE */
/* ========================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    overflow-x: hidden;
}

/* ========================================= */
/* MOBILE */
/* ========================================= */

@media (max-width: 768px) {

    /* LOGIN */

    .main {
        background-size: 1100px auto;
        background-position: center -120px;
        padding: 0 16px;
    }

    .mw-450 {
        width: 100%;
        max-width: 320px !important;
        margin-top: 80px;
    }
    

    .form-control,
    .btn-logista-gradient,
    .label-registrati {
        width: 100%;
        max-width: 100%;
    }

    .testo,
    .password-container,
    .login-options {
        width: 100%;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* SUPPORTO */

    .help {
        padding: 24px 16px;
    }

    .supporto-title {
        font-size: 32px;
    }

    .contacts-container {
        flex-direction: column;
        width: 100%;
    }

    .contact-card {
        flex: none;
        width: 100%;
        min-width: 0;
        margin-top: 16px;
    }

    .contact-info a {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* APP */

    .app {
        padding: 24px 16px;
    }

    .app-container {
        flex-direction: column;
        gap: 32px;
    }

    .app-card-left,
    .app-card-right {
        width: 100%;
    }

    .app-card-right {
        text-align: center;
    }

    .app-title {
        font-size: 32px;
    }

    /* FOOTER */

    .section-footer-container {
        flex-direction: column;
        height: auto;
        gap: 24px;
    }

    .section-footer {
        padding: 24px 16px;
    }

    .section-footer-card {
        height: auto;
        width: 100%;
    }
}