
html, body, * {
    font-family: 'Roboto', sans-serif;
    color: #1D1D1B;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f4f6f5;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.paddings {
    padding-left: 4rem;
    padding-right: 4rem;
}

.login-container {
    width: 100%;
    padding: 3rem;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: space-between;
}

.login-container .col-md-5 {
    flex: 1;
    min-width: 280px;
}

h2 {
    text-align: center;
    color: #204c2e;
    margin-bottom: 2rem;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}


#kc-login:hover {
    background-color: #295135;
}

.social-login,
.enterprise-login {
    margin-top: 2rem;
}

.social-login a,
.enterprise-login a {
    display: block;
    background: #f0f0f0;
    padding: 0.6rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.signup {
    text-align: center;
    margin-top: 2rem;
}

.signup a {
    color: #204c2e;
    text-decoration: none;
    font-weight: 500;
}


/* Responsive behavior */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 90%;
        padding: 2rem;
    }
}

.card-custom {
    width: 100%;
    max-width: 3140px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 16px;
    /*box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);*/
}

.container-unified {
    max-width: 3140px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    max-width: 180px;
    height: auto;
    margin: 0;
}

.language-dropdown {
    font-size: 0.95rem;
    text-align: right;
}

.language-dropdown img {
    margin-left: 0.4rem;
    vertical-align: middle;
}

.signin-heading {
    text-align: left;
    font-size: 2rem;
    color: #295135;
    font-weight: 100;
}

.dab-green {
    color: #295135;
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*font-size: 0.8rem;*/
}

.footer-bar a {
    text-decoration: none;
    /*font-weight: 600;*/
}

.footer-bar a:hover {
    text-decoration: underline;
}

.footer-right a {
    color: #204c2e;
}

.footer-left {
    color: #B1B3B6;
}

.login-social {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6c757d;
}

.login-social-error {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #d9534f;
}


.social-btn {
    height: 44px;
    border-radius: 8px;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    transition: background-color 0.2s ease;
}

.social-btn:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}

.social-btn i,
.social-btn img {
    margin-right: 8px;
}

.social-btn span {
    color: #1D1D1B;
    font-weight: 400;
}

.field-icon {
    right: 12px;
    transform: translateY(-25%);
    cursor: pointer;
    color: #888;
    z-index: 10;

}

.form-control {
    padding-right: 2.5rem;
}


.social-btn span {
    line-height: 1;
}


input[type="text"],
input[type="password"],
input[type="email"] {
    height: 44px;
    font-size: 0.95rem;
    border-radius: 8px;
    width: 100%;
    padding: 0.75rem 1rem;
}

.padding-top-5 {
    padding-top: 2.6rem;
!important;
}

.custom-signin-button {
    background-color: #295135;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    text-transform: uppercase;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    letter-spacing: 0.8px;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease;
    width: 100%;
    height: 12%;
}

.custom-signin-button:hover {
    background-color: #295135;
}


.custom-register {
    width: 40% !important;
    padding: 8px 18px;
    height: 20% !important;
    border-radius: 9999px;
    background-color: #ffffff;
    color: #295135;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 10px;
    outline:1px solid #295135;
    outline-offset:2px;
}


input.custom-signin-button {
    border: none;
    -webkit-appearance: none;
}


.custom-register .full-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.custom-register:hover {
    text-decoration: none;
    color: #254f37;
}


@media (max-width: 576px) {
    .custom-register {
        width: 100% !important;
        padding: 9px 18px 11px 18px;
        min-height: 20px;
        height: 35px !important;
        margin-top: 12px;
        display: block;

    }
}

.custom-checkbox-input {
    position: absolute;
    opacity: 0;
}


.custom-checkbox-label {
    position: relative;
    padding-left: 20px;
    cursor: pointer;
    user-select: none;
    color: #1D1D1B;
    font-weight: 400;
}

/* The fake checkbox box */
.custom-checkbox-label::before {
    content: "";
    position: absolute;
    left: -17px;
    top: 2px;
    width: 20px;
    height: 20px;
    border: 1px solid #254f37;
    border-radius: 6px;
    background: white;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

/* The checkmark when checked */
.custom-checkbox-input:checked + label::before {
    content: "✔";
    color: white;
    background-color: #295135;
    font-size: 14px;
    text-align: center;
    line-height: 18px;
    border-color: #295135;
}



.forgot-link {
    margin-left: auto;
    font-size: 16px;
    line-height: 24px;
    color: #295135;
!important;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.language-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.language-modal-content {
    background: white;
    border-radius: 16px;
    padding: 70px;
    width: 600px;
    max-width: 90%;
    position: relative;
    /*box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);*/
    overflow-y: auto;
    max-height: 100%;
    justify-content: center;
    align-items: center;
}

/* 👇 Adattamento per schermi piccoli */
@media (max-width: 768px) {
    .language-modal-content {
        width: 67%;
        padding: 50px;
        max-height: 80%;
    }
}

@media (max-width: 480px) {
    .language-modal-content {
        align-content: center;
        padding: 30px;
        width: 80%;
        max-height: 80%;
        overflow-y: auto;
    }
}

.language-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 30px;
    font-weight: bold;
    text-align: start;
    color: #363940;
}

.language-modal-content p {
    margin: 0 0 20px;
    color: #363940;
    font-size: 16px;
    font-weight: 400;
}

.language-current {
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 10px 0 6px;
    font-size: 16px;
    color: #254f37;
    font-weight: 500;
}

.language-current img {
    margin-right: 4px;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 30px;
    font-size: 16px;
}

/* 👇 Adattamento per schermi piccoli */
@media (max-width: 768px) {
    .language-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}


.language-option {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: #254f37;
    border-bottom: 1px solid #577763;
    padding-bottom: 6px;
    transition: color 0.2s ease;
}

.language-option:hover {
    color: #1e3f2e;
}

.language-option.active {
    font-weight: bold;
    cursor: default;
}

.language-grid .code {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #295135;
}

.close-button {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 20px;
    cursor: pointer;
    color: #254f37;
}

.language-current-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 6px;
    font-size: 16px;
    color: #1D1D1B;
    border-bottom: 1px solid #577763;
    font-weight: 400;
    width: 100%;
}

.language-current-full .code {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #295135;
}

.language-current-full img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.custom-radio {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    user-select: none;
}

/* Hide native radio input */
.custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* The styled checkmark (circle) */
.custom-radio .checkmark {
    position: relative;
    left: 0;
    top: 80%;
    transform: translateY(-16%);
    height: 18px;
    width: 18px;
    background-color: white;
    border: 2px solid;
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
    color: #B1B3B6;
}

/* Add dot inside when checked */
.custom-radio input[type="radio"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    top: 23.5%;
    left: 21.5%;
    width: 12px;
    height: 12px;
    background-color: #577763;
    border-radius: 50%;
}

body .custom-radio input:checked ~ .checkmark {
    color: #577763;
}

.gap-4 {
    gap: 2.5rem;
}

.registerButton {
    border-radius: 9999px;
    cursor: pointer;
    letter-spacing: 0.8px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    text-transform: uppercase;
    /*transition: background-color 0.3s ease;*/
}

.text {
    font-size: 0.90rem;
    color: #1D1D1B;
    font-weight: 100;
}

.telephone {
    width: 49%;
    align-content: start;
}



#password-policy {
    /*display: grid;*/
    /*grid-template-columns: 1fr 1fr;*/
    /*gap: 8px 16px;*/
    /*margin-top: 10px;*/
}

.policy-item {
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    color: #B1B3B6;
    padding-left: 0;
    /*display: flex;*/
    /*align-items: center;*/
}

.policy-item .icon {
    margin-right: 8px;
    font-weight: bold;
    color: #B1B3B6;
}

.policy-item.invalid {
    color: #DE0000;
}

.policy-item.invalid .icon {
    color: #DE0000;
}

.policy-item.valid {
    color: #577763;
}

.policy-item.valid .icon {
    color: #577763;
    content: "✔";
}

input.form-control.invalid {
    border: 2px solid #DE0000 !important;
    /*box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25);*/
}

.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden; /* Ensures no inner borders show */
    background-color: #fff;
    height: 42px;
}

.phone-prefix {
    background-color: #E6E7E8;
    color: #58595B;
    padding: 0 12px;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}

.phone-input {
    border: none;
    outline: none;
    padding: 0 20px;
    font-size: 14px;
    height: 100%;
    background-color: transparent;
    border-radius: 0;
}

.phone-input::placeholder {
    color: #B1B3B6;
    opacity: 1;
}

.phone-input:focus {
    box-shadow: none;
}


.custom-select {
    appearance: none;
    background-color: white;
    border: 1px solid #ced4da;
    padding: 0.56rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #495057;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23666' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;

}

.custom-select:focus {
    border-color: #2d3e34;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(92, 127, 104, 0.3);
}

/* Shared Dropdown Wrapper */
.dropdown-wrapper {
    /*font-family: 'Roboto', sans-serif;*/
    width: 100%;
    position: relative;
}

/* Dropdown Label */
.dropdown-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    display: block;
    color: #2e4632;
}

/* Dropdown Container */
/*.custom-dropdown {*/
/*    border: 1px solid #ced4da;*/
/*    !*padding: 0.55rem 0.8rem;*!*/
/*    position: relative;*/
/*    cursor: pointer;*/
/*    background-color: #fff;*/
/*    width: 100%;*/
/*    color: #495057;*/
/*    font-size: 16px;*/
/*    border-radius: 8px;*/
/*    !*z-index: 1;*!*/
/*    user-select: none !important;*/
/*}*/


.dropdown-selected {
    color: #6c757d;
    opacity: 1
}

/* Arrow (Optional SVG style) */
.custom-dropdown::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23666' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Dropdown Menu Styling */
.custom-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    /*border: 1px solid #ccc;*/
    background-color: white;
    z-index: 999;
    margin: 0;
    padding: 0;
    list-style: none;
    /*border-radius: 8px;*/
}

/*.custom-dropdown.open {*/
/*    border-width: 2px;*/
/*    border-color: #90A995;*/
/*    color: #295135;*/
/*}*/

.dropdown-selected.open {
    color: #295135 !important;
}

/* Show dropdown on open */
.custom-dropdown.open .custom-dropdown-menu {
    margin-top: 2px;
    display: block;
}

/* Dropdown Options */
.custom-dropdown-menu li {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    color: #295135;
}

/* Hover and selected states */
.custom-dropdown-menu li:hover,
.custom-dropdown-menu li.selected {
    background-color: #5c7f68;
    color: white;
    border-radius: 0;
}

.dropdown-error {
    border-color: #DE0000 !important;
}

.bold-700 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.bold-400 {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.normal-400 {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.normal-500 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.normal-700 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.extra-light-200 {
    font-family: 'Roboto', sans-serif;
    font-weight: 200;
}

.input-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #58595B;
    text-transform: uppercase;
}

/* 👇 Adattamento per schermi piccoli */
@media (max-width: 576px) {
    .input-label {
        display: none !important;
    }
    /*.form-group{*/
    /*    margin-top: 0 !important;*/
    /*    margin-bottom: 0 !important;*/
    /*}*/
}

.input-label-user {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #58595B;
}

.error-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #DE0000;
}

.warning-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #857200;
}

.success-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #295135;
}

.input-alert-error {
    border: 2px solid #DE0000 !important;
}

.input-alert-warning {
    border: 2px solid #857200 !important;
}

.input-alert-success {
    border: 2px solid #295135 !important;
}

.button-border {
    color: #295135;
    border-color: #295135;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
}

.button-border:hover {
    color: #295135;
    border-color: #295135;
}

.custom-card {
    border-radius: 15px;
    background-color: #EDEFEC;
}

.dropdown-input {
    cursor: pointer;
}

.dropdown-input:focus {
    border: 2px solid #90A995;
    outline: none;
    color: #295135;
}

.dropdown-input::placeholder {
    color: #B1B3B6;
    opacity: 1;
}

.form-group.missing label {
    color: #DE0000;
}

.form-group.missing input {
    border-color: #DE0000;
    border-width: 2px;
}

.form-group.missing .missing-label {
    display: block;
}

.form-group.missing .custom-checkbox-label::before {
    outline: 2px solid #DE0000 !important;
    outline-offset: 4px !important;
}

.form-group.missing .custom-checkbox-label .dab-green {
    color: #DE0000 !important;
}

.missing-label {
    display: none;
    font-size: 14px;
    font-weight: 400;
    line-height:20px;
    color: #DE0000;
}

.alert-link-success{
    color: #295135;
    background-color: #cdd8d1;
    border-color: #b9c9bf
}

@media (max-width: 576px) {
    .signin-title {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}
