/* ===================================================================
   Design unificat pentru paginile de login (Pacient si Clinica).
   Acelasi aspect pentru ambele - autentificarea se face dupa contul
   introdus, indiferent de pagina.
   =================================================================== */

.loginPage {
    min-height: calc(100vh - 120px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 148px 16px 48px;
    box-sizing: border-box;
}

/* ----- Logo verde in coltul stanga sus ----- */
.loginLogoTop {
    position: absolute;
    top: 20px;
    left: 24px;
    display: flex;
}

.loginLogoTopLink,
.loginLogoTopLink:link,
.loginLogoTopLink:visited,
.loginLogoTopLink:hover {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.loginLogoTopImg {
    width: 100%;
    max-width: 60px;
    height: auto;
    display: block;
}

.loginLogoTopText {
    display: flex;
    flex-direction: column;
    font-family: Raleway, sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.05;
    color: #4cb860;
    letter-spacing: 0.3px;
}

    .loginLogoTopText .spanBold {
        font-weight: 800;
        color: #249346;
    }

.loginCard {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

/* ----- Titlu + subtitlu ----- */
.loginTitlu {
    font-family: Raleway, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #7563F8;
    margin: 0 0 4px;
}

.loginSubtitlu {
    font-family: Raleway, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #9aa6c4;
    margin: 0 0 32px;
}

/* ----- Inputuri (pill) ----- */
.loginInputWrap {
    position: relative;
    margin-bottom: 18px;
}

.loginInput {
    width: 100%;
    box-sizing: border-box;
    height: 52px;
    padding: 0 48px 0 22px;
    border: 1px solid #e2e5ee;
    border-radius: 28px;
    background: #fff;
    font-family: Raleway, sans-serif;
    font-size: 15px;
    color: #50596c;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.loginInput::placeholder {
    color: #9aa6c4;
}

.loginInput:focus {
    border-color: #7563F8;
    box-shadow: 0 0 0 3px rgba(117, 99, 248, 0.12);
}

/* iconul de ochi pentru parola */
.loginTogglePass {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9aa6c4;
    background: none;
    border: none;
    padding: 0;
}

.loginTogglePass:hover {
    color: #7563F8;
}

.loginTogglePass .material-icons {
    font-size: 20px;
}

/* ----- Link "Ai uitat parola?" ----- */
.loginUitatParola {
    text-align: left;
    margin: 0 0 26px 6px;
}

.loginUitatParola a,
.loginUitatParola a:link,
.loginUitatParola a:visited {
    font-family: Raleway, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #7563F8;
    text-decoration: none;
}

.loginUitatParola a:hover {
    text-decoration: underline;
}

/* ----- Buton principal CONECTARE ----- */
.loginBtnConectare {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 28px;
    background: #7563F8;
    color: #fff;
    font-family: Raleway, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.1s;
}

.loginBtnConectare:hover {
    background: #5f4fe0;
}

.loginBtnConectare:active {
    transform: scale(0.99);
}

/* ----- Separator SAU ----- */
.loginSeparator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9aa6c4;
    font-family: Raleway, sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    margin: 22px 0;
}

.loginSeparator::before,
.loginSeparator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e2e5ee;
}

.loginSeparator::before {
    margin-right: 14px;
}

.loginSeparator::after {
    margin-left: 14px;
}

/* ----- Buton Facebook ----- */
.loginBtnFacebook {
    width: 100%;
    height: 52px;
    border: 1px solid #e2e5ee;
    border-radius: 28px;
    background: #fff;
    color: #50596c;
    font-family: Raleway, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.loginBtnFacebook:hover {
    border-color: #c9cfde;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.loginBtnFacebook .fbIcon {
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
}

/* ----- Link "Creeaza cont" ----- */
.loginCreazaCont {
    margin-top: 28px;
    font-family: Raleway, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #7563F8;
}

.loginCreazaCont a,
.loginCreazaCont a:link,
.loginCreazaCont a:visited {
    color: #7563F8;
    text-decoration: none;
    font-weight: 600;
}

.loginCreazaCont a:hover {
    text-decoration: underline;
}

/* ----- Eroare ----- */
.loginEroare {
    margin-top: 16px;
    padding: 10px 14px;
    background: #fdecea;
    border-radius: 12px;
}

.loginEroare .lblError {
    color: #b71c1c;
    font-family: Raleway, sans-serif;
    font-size: 14px;
}

/* ----- Checkbox "Pastreaza-ma logat" (optional, sub buton) ----- */
.loginPastreaza {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    margin: 0 0 18px 6px;
    font-family: Raleway, sans-serif;
    font-size: 13px;
    color: #9aa6c4;
}

@media (max-width: 480px) {
    .loginPage {
        padding: 112px 12px 32px;
    }
}

/* ===================================================================
   Modal alegere tip cont (Pacient / Clinica) - deschis din "Creeaza cont"
   =================================================================== */
.modalAlegeContOverlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(40, 32, 92, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

    .modalAlegeContOverlay.activ {
        display: flex;
        animation: fadeInModalCont 0.25s ease both;
    }

@keyframes fadeInModalCont {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modalAlegeContBox {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 18px;
    padding: 40px 36px 36px;
    box-shadow: 0 12px 40px rgba(16, 24, 64, 0.25);
    text-align: center;
    animation: slideUpModalCont 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
    box-sizing: border-box;
}

@keyframes slideUpModalCont {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modalAlegeContClose {
    position: absolute;
    top: 15px;
    right: -25px;
    width: 50px;
    height: 50px;
    border: none;
    background: #fff;
    border-radius: 50%;
    color: #7563F8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -1px 0 4px rgba(0, 0, 0, 0.25);
    transition: background-color 0.15s;
}

    .modalAlegeContClose:hover {
        background: #f3f2fb;
    }

    .modalAlegeContClose .material-icons {
        font-size: 24px;
    }

.modalAlegeContTitlu {
    font-family: Raleway, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #7563F8;
    margin: 0 0 6px;
}

.modalAlegeContSubtitlu {
    font-family: Raleway, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #9aa6c4;
    margin: 0 0 28px;
}

.modalAlegeContOptiuni {
    display: flex;
    gap: 18px;
    align-items: stretch;
    justify-content: center;
}

.modalAlegeContCard,
.modalAlegeContCard:link,
.modalAlegeContCard:visited {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 18px;
    border: 2px solid #e2e5ee;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

    .modalAlegeContCard:hover {
        border-color: #7563F8;
        box-shadow: 0 6px 18px rgba(117, 99, 248, 0.18);
        text-decoration: none;
    }

    .modalAlegeContCard:active {
        transform: scale(0.98);
    }

.modalAlegeContCardIcon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f3f2fb;
    color: #7563F8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

    .modalAlegeContCardIcon .material-icons {
        font-size: 30px;
    }

.modalAlegeContCardTitlu {
    font-family: Raleway, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #50596c;
}

.modalAlegeContCardText {
    font-family: Raleway, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #9aa6c4;
    line-height: 1.4;
}

@media (max-width: 520px) {
    .modalAlegeContBox {
        padding: 36px 20px 24px;
    }

    /* Pe ecrane mici readucem butonul X in interiorul cutiei ca sa nu iasa din ecran */
    .modalAlegeContClose {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .modalAlegeContOptiuni {
        flex-direction: column;
        gap: 14px;
    }

    .modalAlegeContCard,
    .modalAlegeContCard:link,
    .modalAlegeContCard:visited {
        flex-direction: row;
        text-align: left;
        padding: 18px 16px;
        gap: 14px;
    }

    .modalAlegeContCardIcon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .modalAlegeContCardTextWrap {
        display: flex;
        flex-direction: column;
    }
}
