/* ============================== */
/* == SYNAPTICA: CLIENT LOGIN LAYOUT == */
/* ============================== */

.login-container {
    max-width: 450px;
    margin: 50px auto;
    text-align: center;
}

.fello-login-section .login-box {
    align-self: center;
    margin-left: 0px !important;
    min-width: 460px !important;
}

#client-login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#superadmin-login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-container label {
    display: block;
    width: 100%;
    max-width: 300px;
    margin-bottom: 6px;
    font-weight: 600;
    text-align: center;
}

.synaptica-input-wrapper {
    width: 100%;
    max-width: 300px;
}

#top form {
    margin-bottom: 10px;
}

/* == Flexstruktur: ikon + input + toggle == */
.synaptica-flex-input {
    display: flex;
    align-items: center;
    position: relative;
    gap: 10px;
    margin-bottom: 10px;
}

/* == Ikon till vänster (utanför input) == */
.input-icon-outside {
    font-size: 16px;
    color: #a3a3a3;
    min-width: 20px;
    text-align: center;
    margin-bottom: 2px;
}

/* == Inputfält == */
.synaptica-flex-input .synaptica-input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 15px;
}

/* == Visa/dölj lösenord 👁 == */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    cursor: pointer;
    color: #a3a3a3;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.toggle-password:hover {
    opacity: 1;
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 6px 10px;
    cursor: pointer;
}

.language-option .lang-flag {
    font-size: 18px;
    flex-shrink: 0;
}

.language-option .lang-name {
    font-size: 11px;
    text-align: left;
    white-space: nowrap;
    font-weight: 600;
    text-transform: capitalize;
}

.autocomplete-item.language-option {
    display: flex;
    justify-content: flex-start !important;
    text-align: left !important;
}

.login-error {
    text-align: center;
    color: red;
    margin-bottom: 10px;
    font-weight: 600;
}

.synaptica-language-manager {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#language-picker {
    display: none;
    width: 100%;
    max-width: 224px;
    margin-top: 10px;
}

#language-picker input#language-search {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 10px;
}

#autocomplete-results {
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border: 0px;
    border-radius: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.autocomplete-item.language-option {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.autocomplete-item.language-option:hover {
    background-color: #f0f0f0;
}

/* === Språkväljare === */
.scrollable-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 0.5em;
    margin-bottom: 1em;
}

.scrollable-list li,
#selected-language-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3em 0;
}

@media only screen and (min-width: 768px) {
    .fello-login-section .entry-content-wrapper {
        display: flex;
        align-items: center;
    }

    .fello-login-section .login-box {
        align-self: center;
    }
}

/* ============================== */
/* == MOBIL: RESPONSIV LOGIN == */
/* ============================== */
@media only screen and (max-width: 767px) {
    .fello-login-section {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
    }

    .fello-login-section .fello-character img {
        max-width: 200px;
    }

    .fello-login-section .login-box {
        width: 100%;
        max-width: 360px;
        min-width: 0 !important;
        box-sizing: border-box;
    }

}

@media (orientation: landscape) and (max-width: 900px) {
    .fello-login-section .wp-image-1252 {
        width: 340px !important;
        max-width: 340px !important;
        height: auto !important;
    }

    .fello-login-section .entry-content-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 390px) and (orientation: portrait) {
    .fello-login-section .avia-image-container img {
        content: url("https://synaptica.aifellow.se/wp-content/uploads/2026/08/oacar_pointing_down.png");
    }
}