﻿html, body {
    height: 100%;
    width: 100vw;
    min-width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Encode Sans', 'Segoe UI', Arial, sans-serif;
}

.login-split,
.login-main {
    width: 100vw;
    max-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
}

.login-logo-top {
    position: absolute;
    top: 34px;
    left: 38px;
    z-index: 10;
}
    .login-logo-top img {
        width: 320px;
        height: auto;
        filter: drop-shadow(0 1px 8px #00000013);
    }
.login-main {
    flex: 1;
    display: flex;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}
.login-left,
.login-right {
    min-height: 100vh;
    height: 100vh;
    flex: 1;
    overflow: hidden;
}
.login-left {
    /*background: #f6faff;*/
    display: flex;
    justify-content: center;
    align-items: center;
    /*border-right: 1px solid #e2e6f0;*/
}
.login-hero-img {
    width: 80%;
    max-width: 420px;
    min-width: 230px;
    /* border-radius: 28px;
    box-shadow: 0 10px 44px 0 rgba(46,91,173,0.13);*/
}

.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: #fff;*/
    min-width: 350px;
}

.login-content {
    width: 100%;
    max-width: 340px;
    padding: 0 14px;
    margin-top: -20px;
}

.login-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.1rem;
}

.login-logo-contigo {
    width: 300px;
    height: auto;
}

.login-portal-title {
    font-size: 1.09rem;
    font-weight: 500;
    color: #2974b0;
    margin-left: 4px;
}

.login-title {
    font-weight: 700;
    font-size: 2rem;
    color: #2a3663;
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.login-desc {
    font-size: 1rem;
    color: #586377;
    margin-bottom: 20px;
    font-weight: 400;
}

.login-group {
    margin-bottom: 19px;
}

.login-label {
    color: #2974b0;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 7px;
    display: block;
}

.login-input {
    width: 100%;
    border-radius: 10px;
    border: 1.5px solid #d2e2f7;
    background: #fafcff;
    color: #1c283d;
    padding: 12px 14px;
    font-size: 1.05rem;
    outline: none;
    box-shadow: 0 1px 2px 0 rgba(42,54,99,.03);
    transition: border .18s, box-shadow .18s;
}

    .login-input:focus {
        border: 1.7px solid #47a7f5;
        background: #fff;
    }

.login-password-box {
    display: flex;
    align-items: center;
    position: relative;
}

.login-pass-btn {
    position: absolute;
    right: 7px;
    top: 52%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 3px 7px;
    font-size: 1.13rem;
    color: #9da7b7;
    z-index: 1;
}

.login-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.login-link {
    background: none;
    border: none;
    color: #457eff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color .15s;
}

    .login-link:hover,
    .login-link:focus {
        color: #2a3663;
        text-decoration: underline;
    }

.login-btn-main {
    width: 100%;
    background: #2289dd;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.13rem;
    padding: 12px 0;
    margin-top: 13px;
    margin-bottom: 7px;
    transition: background .16s;
    box-shadow: 0 2px 10px 0 rgba(42,54,99,.07);
    cursor: pointer;
    letter-spacing: 0.5px;
}

    .login-btn-main:hover,
    .login-btn-main:focus {
        background: #AED3F1;
        color: black;
    }

.login-extra {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.01rem;
    margin-top: 15px;
}

    .login-extra .login-link {
        font-weight: 700;
        font-size: 1rem;
    }

.login-footer {
    width: 100vw;
    text-align: center;
    color: #8d97ad;
    font-size: .95rem;
    margin: 0 0 15px 0;
    letter-spacing: .02em;
    position: fixed;
    bottom: 0;
    left: 0;
    background: transparent;
    z-index: 10;
    pointer-events: none;
}

@media (max-width: 1100px) {
    .login-left, .login-right {
        flex: 1.1;
    }

    .login-logo-top img {
        width: 110px;
    }
}

@media (max-width: 850px) {
    html, body {
        overflow-y: auto !important;
    }

    .login-main {
        flex-direction: column;
        min-height: unset;
        height: auto;
    }

    .login-left, .login-right {
        width: 100vw;
        min-width: unset;
        min-height: unset;
        height: auto;
        overflow: visible;
    }

    .login-left {
        border-right: none;
        border-bottom: 1px solid #e2e6f0;
    }

    .login-right {
        height: auto;
        min-width: unset;
    }

    .login-content {
        margin-top: 0;
    }

    .login-hero-img {
        max-width: 300px;
    }

    .login-logo-top {
        top: 14px;
        left: 12px;
    }
}

@media (max-width: 600px) {
    .login-main {
        flex-direction: column;
    }

    .login-left, .login-right {
        min-width: unset;
        width: 100vw;
        min-height: unset;
        height: auto;
    }

    .login-content {
        max-width: 99vw;
        padding: 0 10px;
    }

    .login-title {
        font-size: 1.22rem;
    }

    .login-logo-top img {
        width: 82px;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes fadeIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
.error-text {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
}

.login-input.error {
    border: 1px solid #dc3545 !important;
}
/*MODAL GENERICO*/
#modalMessage {
    z-index: 5000;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: #fff;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    animation: fadeInScale 0.3s ease;
}

.modal-header {
    padding: 12px 16px;
    /*border-bottom: 1px solid #eee;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h4 {
        margin: 0;
        font-size: 28px;
        font-weight: 600;
        color: #003b71;
    }

.modal-close {
    background: none;
    border: none;
    font-size: 35px;
    cursor: pointer;
    color: #666;
}

    .modal-close:hover {
        color: #000;
    }

.modal-body {
    padding: 16px;
    font-size: 18px;
    color: #444;
    text-align: left;
}

.modal-footer {
    padding: 12px;
    /*border-top: 1px solid #eee;*/
    text-align: center;
}

.modal-btn {
    background: #3787CA;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    
}

    .modal-btn:hover {
        background: #B4D1EE;
        color: #000000;
    }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}