* {
    margin: 0;
    padding: 0;
}

body.other-page .wrapper {
    min-height: calc(100svh - 8rem);
}

body.other-page .custom-input {
    width: 100%;
}

body.other-page input[disabled] {
    background: var(--light-gray) !important;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet: =< 1024px */
@media (max-width: 1024px) {
    .wrapper {
        padding: 0 5%;
        gap: 2rem;
    }

    .wrapper > .hero {
        max-width: 45vw;
    }

    .wrapper > .hero .title {
        font-size: 3rem;
    }

    .wrapper .login-container {
        max-width: 55vw;
        width: 50vw;
        padding: 2rem;
    }
}

/* Mobile: =< 767px */
@media (max-width: 767px) {
    body {
        overflow-y: auto;
        max-height: none;
    }

    .wrapper {
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        padding: 1.5rem !important;
        height: auto;
        min-height: 100svh;
        gap: 1.5rem;
    }

    .wrapper > .hero {
        display: none;
    }

    /* override inline width: 50% sul div destro */
    .wrapper > div:not(.hero) {
        width: 100% !important;
        max-width: 480px;
        margin: 0 auto;
    }

    .wrapper .login-container {
        box-sizing: border-box;
        max-width: 100% !important;
        width: 100% !important;
        padding: 2rem !important;
    }

    .custom-input {
        box-sizing: border-box;
        width: 100% !important;
    }

    .chip-container {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Piccolo mobile: =< 480px */
@media (max-width: 480px) {
    .wrapper {
        padding: 1rem !important;
    }

    .wrapper .login-container {
        box-sizing: border-box;
        padding: 1.5rem !important;
        border-radius: 10px;
    }

    .wrapper .login-container .title {
        font-size: 1.25rem;
    }

    .other-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

:root {
    --login-border-color: #edf2f7;
    --login-border: 1px solid var(--login-border-color);
}

body {
    overflow-y: hidden;
    min-height: 100svh;
    max-height: 100svh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(163.89deg, #004198 7.97%, #147DD1 92.03%);
    filter: blur(10px);
    transform: scale(1.1);
    z-index: -1;
    pointer-events: none;
}

.wrapper {
    padding: 0 10%;
    display: flex;
    flex-direction: row;
    position: relative;
    align-items: center;
    justify-content: space-between;
    height: 100svh;
    backdrop-filter: blur(30px);
}

.wrapper:not(.other-page)::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 40%;
    height: 40%;
    background: url(../image/homePage/airplane-home-bg.png);
    background-position: center;
    z-index: -1;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(10px);
    transform: scale(1.1);
}

.wrapper:has( > div:only-of-type) {
    justify-content: center;
}

.wrapper > .hero {
    max-width: 35vw;
}

.wrapper > .hero .title {
    font-size: 4rem;
    line-height: 1;
    font-weight: 300;
    color: #111827;
}

.wrapper > .hero .title > .azure {
    color: var(--light-blue);
}

.wrapper > .hero p:not(.title) {
    font-size: 1.25rem;
    line-height: 1.625;
    color: #4b5563;
}

.wrapper .login-container {
    max-width: 40vw;
    width: 30vw;
    padding: 3rem;
    border-radius: 15px;
    background: white;
    border: var(--login-border);
}

.wrapper .login-container .title {
    font-size: 1.5rem;
    line-height: calc(2 / 1.5);
    font-weight: 300;
    text-align: center;
}

.wrapper .login-container .subtitle {
    font-size: .9rem;
    line-height: calc(1.5 / 1);
    font-weight: 300;
    color: #6b7280;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.wrapper label {
    color: #6b7280;
}

.wrapper a {
    color: var(--light-blue);
    text-decoration: none;
}

.input-form > div:not(:last-of-type) {
    margin-bottom: 1.5rem;
}

.input-form .subtitle {
    padding-bottom: 0.5rem;
    margin-bottom: 0 !important;
    text-align: left !important;
    display: block;
}

.input-container {
    position: relative;
}

.input-container .input-icon {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    pointer-events: none;
    color: #9ca3af;
    font-size: 1.25rem;
    top: 50%;
    transform: translate(0, -50%);
}

.input-container .eye-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding-right: 1rem;
    cursor: pointer;
    color: #9ca3af;
    font-size: 1.25rem;
    top: 50%;
    transform: translate(0, -50%);
}

.custom-input {
    display: block;
    width: calc(100% - 4rem);
    background: white;
    padding: 0.75rem 1rem;
    padding-left: 3rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    transition: all 150ms;
    font-size: 1rem;
}

.custom-input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--light-blue);
}

.custom-btn {
    width: 100%;
    background: var(--light-blue);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 300;
    gap: 0.5rem;
    transition: all 150ms;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    border: none;
    cursor: pointer;
}

.custom-btn:hover {
    background: #1a6ad1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.20);
}

.custom-btn:hover .chevron-icon {
    transform: translateX(4px);
}

.custom-btn .chevron-icon {
    font-size: 1rem;
    display: inline-block;
    transition: transform 150ms;
    color: white;
}

.center-icon {
    display: flex;
    align-items: center;
    margin-bottom: .875rem;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    margin: auto;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: var(--light-blue);
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.icon-box .lock-icon {
    font-size: 2rem;
    color: #ffffff;
}

.other-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.other-actions > div {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.other-actions a, .other-actions label {
    font-size: .825rem;
}

hr {
    color: var(--login-border-color);
    background: var(--login-border-color);
    width: 100%;
    height: 2px;
    margin: 1rem auto;
    border: 0;
}

.badge-welcome {
    display: inline-block;
    padding: 0.2rem 1rem;
    margin-bottom: 1rem;
    background: #FFFFFFD9;
    border-radius: 9999px;
    border: 1px solid rgba(31, 133, 248, .3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    user-select: none;
}

.badge-welcome span {
    font-size: 0.875rem;
    color: #828287;
}

.features-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(31, 133, 248, 0.10);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #1f85f8;
}

.feature-text {
    color: #4b5563;
}

.chip-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
