* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #fff;
}

.login-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left Panel - Form */
.login-left-panel {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 4rem;
    position: relative;
    background: #fff;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.login-logo {
    margin-bottom: 2rem;
}

    .login-logo img {
        width: 150px;
        height: auto;
    }

.login-title {
    font-size: 5rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 1.5rem;
}

.login-subtitle {
    font-size: 2rem;
    color: #002152;
    font-weight: 500;
    margin-bottom: 2.5rem;
}

/* Form Fields */
.login-field {
    margin-bottom: 1.8rem;
}

.login-field label {
    display: block;
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

    .login-field .field-input {
        width: 100%;
        border: none;
        border-bottom: 2px solid #e0e0e0;
        padding: 0.8rem 0;
        font-size: 1.4rem;
        color: #333;
        background: transparent;
        outline: none;
        transition: border-color 0.3s ease;
        border: 1px solid #d8e0e8;
        border-radius: 20px;
        padding: 1vh 1.5vw;
    }

        .login-field .field-input:focus {
            border-color: #23c6c8;
        }

.login-field .field-input::placeholder {
    color: #ccc;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .field-input {
    padding-right: 3.5rem;
}

    .password-wrapper .toggle-password {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #aaa;
        font-size: 1.5rem;
        transition: color 0.2s;
        background: none;
        border: none;
        padding: 1vw;
    }

.password-wrapper .toggle-password:hover {
    color: #1ab394;
}

.toggle-password .icon-hide {
    display: none;
}

.toggle-password.is-visible .icon-show {
    display: none;
}

.toggle-password.is-visible .icon-hide {
    display: inline-flex;
}

.toggle-password .icon img {
    width: 1.25vw;
    height: 2.8vh;
    display: block;
}

.closed-eye {
    margin-top: 1vh;
}

/* Remember & Forgot */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
}

    .remember-me input[type="checkbox"] {
        accent-color: #1ab394;
        width: 1.5rem;
        height: 1.5rem;
        cursor: pointer;
        appearance: none;
        border: 1px solid #CFD9E0;
        border-radius: 3px;
        outline: none;
        margin: 0;
    }
        .remember-me input[type="checkbox"]:checked {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
            background-color: #1ab394;
            background-size: 10px 10px;
            background-repeat: no-repeat;
            background-position: center;
            border-color: #CFD9E0;
        }

.forgot-link {
    font-size: 1.2rem;
    color: #073989;
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    color: #17a085;
    text-decoration: underline;
}

/* Recovery destination options */
.rec-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    border: 1px solid #d8e0e8;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rec-option:hover {
    border-color: #b9c6d4;
}

.rec-option--selected {
    border-color: #23C6C8;
    background: #f1fbfb;
    box-shadow: 0 0 0 1px #23C6C8;
}

.rec-option--disabled {
    cursor: default;
    background: #f6f7f9;
    border-color: #ececec;
}

.rec-option--disabled:hover {
    border-color: #ececec;
}

.rec-option-radio {
    accent-color: #23C6C8;
    width: 1.6rem;
    height: 1.6rem;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}

.rec-option-warn {
    color: #e67e22;
    font-size: 2rem;
    flex-shrink: 0;
    width: 1.6rem;
    text-align: center;
}

.rec-option-body {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.4;
}

.rec-option-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #073989;
}

.rec-option-title i {
    margin-right: 0.4rem;
    color: #4a6585;
}

.rec-option-value {
    font-size: 1.2rem;
    color: #6b7a90;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.rec-option-value--warn {
    color: #e67e22;
    font-weight: 500;
}

/* Submit Button */
.login-submit-btn {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(90deg, #23C6C8 0%, #009FA1 100%);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

    .login-submit-btn:hover {
        background: #01a0a2;
        box-shadow: 0 4px 15px rgba(26, 179, 148, 0.4);
    }

.validation-summary-errors {
    color: #e74c3c;
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

.validation-summary-errors ul {
    list-style: none;
    padding: 0;
}

/* Version */
.login-version {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.1rem;
    color: #6D7A88;
}

/* Right Panel - Image */
.login-right-panel {
    width: 55%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: end;
    justify-content: center;
}

    .login-right-panel .bg-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        user-select: none;
        pointer-events: none;
    }

    .login-right-panel .bg-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(182.19deg, rgba(0, 69, 70, 0.85) -20%, rgba(0, 9, 9, 0.85) 101.04%);
        background-blend-mode: multiply;
    }

.right-panel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 3rem;
    max-width: 500px;
    margin-bottom: 15vh;
}

.right-panel-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.right-panel-content p {
    font-size: 1.5rem;
    line-height: 1.7;
    opacity: 0.9;
}

#recDestinations {
    gap: 1rem;
    display: flex;
    flex-direction: column;
}

.meter-container {
    margin-top: 0.7rem;
}

.meter-track {
    position: relative;
    height: 1rem;
    margin-bottom: 3rem;
    margin-top: 1rem;
}

.meter-container meter {
    /* Reset the default appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    margin: 0;
    width: 100%;
    height: 100%;
    /* Applicable only to Firefox */
    background: none;
    border-radius: 4px;
}

    meter::-webkit-meter-bar {
        background: none;
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 4px;
    }

    /* Webkit based browsers */
    meter[value="1"]::-webkit-meter-optimum-value {
        background: #c72f21;
    }

    meter[value="2"]::-webkit-meter-optimum-value {
        background: #ffd23f;
    }

    meter[value="3"]::-webkit-meter-optimum-value {
        background: #ff9505;
    }

    meter[value="4"]::-webkit-meter-optimum-value {
        background: #2dd579;
    }

    /* Gecko based browsers */
    meter[value="1"]::-moz-meter-bar {
        background: #c72f21;
    }

    meter[value="2"]::-moz-meter-bar {
        background: #ffd23f;
    }

    meter[value="3"]::-moz-meter-bar {
        background: #ff9505;
    }

    meter[value="4"]::-moz-meter-bar {
        background: #2dd579;
    }

    .meter-segments {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        pointer-events: none; /* Allows clicks to pass through */
    }

    /* Inner borders act as segment dividers */
        .meter-segments span {
            flex: 1;
            box-sizing: border-box;
            border-right: 2px solid #ffffff; /* Divider gap width/color */
        }

        .meter-segments span:last-child {
            border-right: none;
        }

.meter-track > div {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
    display: flex;
    justify-content: space-between;
}

#password-strength-text {
    margin: 0 0 0.5rem;
}

/*#password-strength-text {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}*/

        /* Responsive */
        @media (max-width: 992px) {
            .login-wrapper {
                flex-direction: column;
            }

            .login-left-panel {
                width: 100%;
                padding: 2rem;
                min-height: auto;
                flex: 1;
            }

            .login-right-panel {
                display: none;
            }

            .login-version {
                position: relative;
                bottom: auto;
                left: auto;
                transform: none;
                text-align: center;
                margin-top: 2rem;
            }
        }

        @media (max-width: 480px) {
            .login-left-panel {
                padding: 1.5rem;
            }

            .login-title {
                font-size: 3.75rem;
            }

            .login-subtitle {
                font-size: 1.5rem;
                margin-bottom: 1.5rem;
            }

            .login-form-container {
                max-width: 100%;
            }

            .toggle-password .icon img {
                width: 4.5vw;
            }

            .login-field .field-input {
                padding: 1vh 3.5vw;
            }

            .password-wrapper .toggle-password {
                padding: 3vw;
            }
        }

        input::-ms-reveal, input::-ms-clear {
            display: none;
        }

@media(min-width: 2000px) {

    .login-form-container {
        max-width: 500px;
    }

    .login-logo img {
        width: 300px;
    }

    .login-title {
        font-size: 7.5rem;
    }

    .login-subtitle {
        font-size: 2.75rem;
    }

    .login-field label {
        font-size: 1.8rem;
    }

    .login-field .field-input {
        font-size: 1.8rem;
    }

    .password-wrapper .toggle-password {
        padding: 0.6vw;
    }

    .remember-me input[type="checkbox"] {
        width: 2rem;
        height: 2rem;
    }

    .remember-me {
        font-size: 1.8rem;
    }

    .forgot-link {
        font-size: 1.6rem;
    }

    .login-submit-btn {
        font-size: 1.8rem;
    }
}
