:root {
    --bt-alb: #ffffff;
    --bt-negru: #111111;
    --bt-platina: #dfdfdf;
    --bt-gri-camp: #d4d4d8;
    --bt-gri-text: #797979;
    --bt-gri-secundar: #737382;
    --bt-albastru: #1a76ff;
    --bt-albastru-deschis: #0090ff;
    --bt-gri-camp-fundal: #fafafa;
    --bt-gri-camp-chenar: #e7e7e7;
    --bt-gri-eticheta: #67686a;
    --bt-negru-valoare: #000b13;
    --bt-verde: #0aab60;
    --bt-rosu: #d92d20;
    --bt-eroare-fundal: #fdf1f0;
    --bt-eroare-chenar: #f3c6c2;
    --bt-eroare-text: #7a1c15;
    --bt-text-pe-buton: #ffffff;
    --bt-chenar-fix: #111111;
    --bt-buton-login-apasat: #007ee0;
    --bt-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Tema inchisa. Se schimba doar culorile, formele raman aceleasi. */
.dark {
    --bt-alb: #18181b;
    --bt-negru: #f4f4f5;
    --bt-platina: #3f3f46;
    --bt-gri-camp: #52525b;
    --bt-gri-text: #a1a1aa;
    --bt-gri-secundar: #a1a1aa;
    --bt-albastru: #3b8bff;
    --bt-albastru-deschis: #38a5ff;
    --bt-gri-camp-fundal: #27272a;
    --bt-gri-camp-chenar: #3f3f46;
    --bt-gri-eticheta: #a1a1aa;
    --bt-negru-valoare: #f4f4f5;
    --bt-eroare-fundal: #3b1513;
    --bt-eroare-chenar: #7f2d26;
    --bt-eroare-text: #fca5a1;
    --bt-text-pe-buton: #ffffff;
    --bt-chenar-fix: #71717a;
    --bt-buton-login-apasat: #5cb3ff;
}

.bt-pagina {
    min-height: 100vh;
    background: var(--bt-alb);
    font-family: var(--bt-font);
    color: var(--bt-negru);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bt-antet {
    padding: 32px 0;
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
}

.bt-iesire {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.bt-iesire button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    color: #1a76ff;
    text-decoration: underline;
}

.bt-iesire button:hover {
    color: #0f57c4;
}

.bt-antet img {
    width: 67.25px;
    height: 76.88px;
    display: block;
}

.bt-continut {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 52px 24px 100px;
    box-sizing: border-box;
}

.bt-titlu-mare {
    font-size: 54px;
    font-weight: 600;
    letter-spacing: -1.2px;
    line-height: 1.06;
    text-align: center;
    margin: 0 0 56px;
}

.bt-card {
    border: 1px solid var(--bt-platina);
    border-radius: 24px;
    padding: 48px 56px;
    width: 100%;
    max-width: 560px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bt-card--ingust {
    max-width: 432px;
}

.bt-titlu-card {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.69px;
    line-height: 1.16;
    margin: 0;
    text-align: center;
}

.bt-intro {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.3px;
    line-height: 1.52;
    margin: 0;
}

.bt-campuri {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bt-camp {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bt-cutie {
    position: relative;
    min-height: 56px;
    border: 1px solid var(--bt-platina);
    border-radius: 10px;
    background: var(--bt-alb);
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.bt-cutie:focus-within {
    border-color: var(--bt-negru);
}

.bt-cutie--fix {
    border-color: var(--bt-chenar-fix);
    background: var(--bt-alb);
}

.bt-cutie--gresit {
    border-color: var(--bt-rosu);
}

.bt-eticheta {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.05px;
    line-height: 1.42;
    color: var(--bt-gri-text);
    display: block;
}

.bt-cutie input,
.bt-cutie select {
    border: 0;
    outline: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    background: transparent;
    font-family: var(--bt-font);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.04px;
    line-height: 1.42;
    color: var(--bt-negru);
    appearance: none;
}

.bt-cutie select {
    cursor: pointer;
    padding-right: 24px;
}

.bt-cutie--lista::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -3px;
    background: url("../images/bt/sageata-jos.svg") no-repeat center / contain;
    pointer-events: none;
}

.bt-valoare-fixa {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.04px;
    line-height: 1.42;
    color: var(--bt-negru);
}

.bt-eroare-camp {
    font-size: 12px;
    line-height: 1.4;
    color: var(--bt-rosu);
}

.bt-bifa {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.bt-bifa input {
    appearance: none;
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    margin: 0;
    border: 1px solid var(--bt-gri-camp);
    border-radius: 50%;
    cursor: pointer;
    background: var(--bt-alb);
}

.bt-bifa input:checked {
    border: 0;
    background: url("../images/bt/bifa.svg") no-repeat center / 25px 25px;
}

.bt-bifa label {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.52;
    color: var(--bt-gri-text);
    cursor: pointer;
}

.bt-bifa a {
    color: inherit;
    text-decoration: underline;
}

.bt-buton {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 10px;
    background: var(--bt-albastru);
    color: var(--bt-text-pe-buton);
    font-family: var(--bt-font);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.13px;
    cursor: pointer;
}

.bt-buton:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

a.bt-buton,
a.bt-buton:hover,
a.bt-buton:visited {
    color: var(--bt-text-pe-buton);
    text-decoration: none;
}

.bt-buton--rotund {
    width: auto;
    height: 64px;
    padding: 10px 32px;
    border-radius: 108px;
    font-size: 14px;
    letter-spacing: -0.09px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bt-buton--login {
    border-radius: 12px;
    background: var(--bt-albastru-deschis);
}

.bt-confirmare {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 56px 64px;
    background: var(--bt-alb);
    border-radius: 34px;
    text-align: center;
}

.bt-confirmare img {
    width: 160px;
    height: 160px;
}

.bt-confirmare p {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.33px;
    line-height: 1.44;
    color: var(--bt-negru);
    margin: 0;
    max-width: 498px;
}

.bt-confirmare p a {
    color: inherit;
    text-decoration: underline;
}

.bt-mesaj {
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
}

.bt-mesaj--eroare {
    background: var(--bt-eroare-fundal);
    border: 1px solid var(--bt-eroare-chenar);
    color: var(--bt-eroare-text);
}

.bt-legatura-jos {
    margin-top: 24px;
    font-size: 13px;
    color: var(--bt-gri-secundar);
}

.bt-legatura-jos a {
    color: var(--bt-gri-secundar);
}

@media (max-width: 620px) {
    .bt-card {
        padding: 32px 20px;
        border-radius: 16px;
    }

    .bt-titlu-mare {
        font-size: 34px;
        margin-bottom: 32px;
    }

    .bt-confirmare {
        padding: 32px 20px;
    }

    .bt-confirmare img {
        width: 112px;
        height: 112px;
    }
}

/* Campurile Filament de pe pagina de autentificare, aduse la forma din design */

.bt-login .fi-sc,
.bt-login .fi-sc-form,
.bt-login .fi-grid {
    gap: 12px;
    row-gap: 12px;
}

.bt-login .fi-fo-field {
    background: var(--bt-gri-camp-fundal);
    border: 1px solid var(--bt-gri-camp-chenar);
    border-radius: 12px;
    min-height: 56px;
    padding: 9px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    box-sizing: border-box;
}

.bt-login .fi-fo-field:focus-within {
    border-color: var(--bt-negru);
}

.bt-login .fi-fo-field:has(.fi-invalid) {
    border-color: var(--bt-rosu);
}

.bt-login .fi-fo-field-label,
.bt-login .fi-fo-field-label-content {
    font-family: var(--bt-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--bt-gri-eticheta);
}

.bt-login .fi-fo-field-label-required-mark {
    display: none;
}

.bt-login .fi-input-wrp {
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: 0;
    min-height: 0;
}

.bt-login .fi-input {
    font-family: var(--bt-font);
    font-size: 16px;
    line-height: 1.4;
    padding: 0;
    color: var(--bt-negru-valoare);
}

/* Ochiul de arătat parola, iconița din design */
.bt-login .fi-fo-field {
    position: relative;
}

.bt-login .fi-input-wrp-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
}

.bt-login .fi-input-wrp-actions .fi-icon-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    background: url("../images/bt/ochi.svg") no-repeat center / 24.75px 24px;
}

.bt-login .fi-input-wrp-actions .fi-icon-btn svg {
    display: none;
}

/* Pe câmpul gol nu se arată, ca în design */
.bt-login .fi-fo-field:has(input:required:invalid) .fi-input-wrp-suffix {
    display: none;
}

.bt-login .fi-fo-field:has(.fi-input-wrp-suffix) .fi-input {
    padding-right: 40px;
}

.bt-login .fi-btn {
    background: var(--bt-albastru-deschis);
    background-color: var(--bt-albastru-deschis);
    border-radius: 12px;
    padding: 18px 40px;
    font-family: var(--bt-font);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.13px;
    box-shadow: none;
    border: 0;
}

.bt-login .fi-btn:hover {
    background-color: var(--bt-buton-login-apasat);
}

.bt-login .fi-btn,
.bt-login .fi-btn *,
.bt-login .fi-btn .fi-btn-label {
    color: var(--bt-text-pe-buton);
}

.bt-login .fi-fo-form-actions,
.bt-login .fi-ac {
    margin-top: 16px;
    width: 100%;
}

.bt-login .fi-ac-btn-action {
    width: 100%;
}

.bt-formular {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bt-cod-urmarire {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    color: var(--bt-gri-text);
    white-space: nowrap;
}

/* Paginile proprii din panou */
.bt-parola {
    max-width: 512px;
}

.bt-actiuni {
    margin-top: 24px;
}

.bt-spatiu-sus {
    margin-top: 24px;
}

.bt-nota {
    font-size: 14px;
    line-height: 1.5;
}

.bt-nota--sus {
    margin-top: 16px;
}

.bt-explicatii {
    font-size: 14px;
    line-height: 1.5;
}

.bt-explicatii p + p {
    margin-top: 8px;
}

.bt-filtre {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.bt-filtre label {
    display: block;
    font-size: 14px;
}

.bt-filtre input {
    display: block;
    border: 1px solid var(--bt-gri-camp);
    border-radius: 8px;
    background: var(--bt-alb);
    color: var(--bt-negru);
    font: inherit;
    padding: 6px 10px;
}

.bt-cifre {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bt-cifra-eticheta {
    font-size: 14px;
}

.bt-cifra-valoare {
    font-size: 30px;
    font-weight: 600;
}

.bt-tabel {
    width: 100%;
    font-size: 14px;
}

.bt-tabel th {
    text-align: left;
    padding: 8px 0;
}

.bt-tabel td {
    padding: 8px 0;
}

.bt-tabel tbody tr {
    border-top: 1px solid var(--bt-platina);
}

.bt-tabel .bt-tabel-nume {
    font-weight: 500;
}

.bt-probleme {
    font-size: 14px;
    list-style: disc;
    padding-inline-start: 20px;
    margin-top: 8px;
}

.bt-probleme li + li {
    margin-top: 4px;
}

@media (max-width: 640px) {
    .bt-cifre {
        grid-template-columns: 1fr;
    }
}

/* Data nasterii: aceeasi cutie ca la celelalte campuri din formular */
.bt-camp--calendar .fi-fo-field {
    min-height: 56px;
    border: 1px solid var(--bt-platina);
    border-radius: 10px;
    background: var(--bt-alb);
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.bt-camp--calendar .fi-fo-field:focus-within {
    border-color: var(--bt-albastru);
}

.bt-camp--calendar .fi-fo-field-label,
.bt-camp--calendar .fi-fo-field-label-content {
    font-family: var(--bt-font);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.05px;
    line-height: 1.42;
    color: var(--bt-gri-text);
}

.bt-camp--calendar .fi-fo-field-label-required-mark {
    display: none;
}

.bt-camp--calendar .fi-input-wrp {
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: 0;
    min-height: 0;
}

.bt-camp--calendar input.fi-input {
    font-family: var(--bt-font);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.04px;
    line-height: 1.42;
    color: var(--bt-negru);
    padding: 0;
    background: transparent;
}
