.borbila-auth {
    --borbila-auth-primary: #006e39;
    --borbila-auth-primary-dark: #005529;
    --borbila-auth-border: #dbe6df;
    --borbila-auth-muted: #667085;
    --borbila-auth-bg: linear-gradient(180deg, #f6fbf8 0%, #ffffff 100%);
    padding: 28px 14px;
}

.borbila-auth__shell {
    max-width: 500px;
    margin: 0 auto;
}

.borbila-auth__card {
    background: #ffffff;
    border: 1px solid rgba(0, 110, 57, 0.08);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    padding: 26px;
}

.borbila-auth__card--centered {
    text-align: center;
}

.borbila-auth__panel[hidden] {
    display: none;
}

.borbila-auth__header {
    text-align: center;
    margin-bottom: 20px;
}

.borbila-auth__title {
    margin: 0;
    color: #103b2b;
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.1;
}

.borbila-auth__subtitle {
    margin: 8px 0 0;
    color: var(--borbila-auth-muted);
    font-size: 0.9rem;
}

.borbila-auth__form {
    display: grid;
    gap: 14px;
}

.borbila-auth__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.borbila-auth__field {
    display: grid;
    gap: 7px;
    color: #122f22;
    font-weight: 600;
    font-size: 0.88rem;
}

.borbila-auth__field span strong {
    color: #c92a2a;
}

.borbila-auth__field input {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid var(--borbila-auth-border);
    border-radius: 12px;
    background: #ffffff;
    color: #102a1f;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.borbila-auth__field input:focus {
    outline: none;
    border-color: rgba(0, 110, 57, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 110, 57, 0.1);
}

.borbila-auth__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--borbila-auth-muted);
    font-weight: 500;
    font-size: 0.88rem;
}

.borbila-auth__checkbox input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--borbila-auth-primary);
}

.borbila-auth__checkbox--terms {
    align-items: flex-start;
}

.borbila-auth__checkbox a,
.borbila-auth__footer a,
.borbila-auth__secondary-link,
.borbila-auth__muted-link {
    color: var(--borbila-auth-primary);
    text-decoration: none;
}

.borbila-auth__checkbox a:hover,
.borbila-auth__footer a:hover,
.borbila-auth__secondary-link:hover,
.borbila-auth__muted-link:hover {
    color: var(--borbila-auth-primary-dark);
}

.borbila-auth__primary,
.borbila-auth__outline {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.borbila-auth__primary {
    border: 0;
    background: var(--borbila-auth-primary);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(0, 110, 57, 0.18);
}

.borbila-auth__primary:hover {
    background: var(--borbila-auth-primary-dark);
    transform: translateY(-1px);
}

.borbila-auth__outline {
    border: 2px solid var(--borbila-auth-primary);
    background: #ffffff;
    color: var(--borbila-auth-primary);
}

.borbila-auth__outline:hover {
    background: #f3faf6;
    transform: translateY(-1px);
}

.borbila-auth__muted-link {
    text-align: center;
    color: #8b95a7;
}

.borbila-auth__footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf2ee;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--borbila-auth-muted);
    font-size: 0.88rem;
}

.borbila-auth__footer--stacked {
    border-top: 0;
    padding-top: 0;
}

.borbila-auth__actions {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.borbila-auth__flash {
    margin-bottom: 16px;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 600;
    font-size: 0.88rem;
}

.borbila-auth__flash--success {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
}

.borbila-auth__flash--error {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
}

.borbila-auth--logged-in .borbila-auth__card {
    background: var(--borbila-auth-bg);
}

@media (max-width: 767px) {
    .borbila-auth {
        padding: 20px 10px;
    }

    .borbila-auth__card {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .borbila-auth__grid {
        grid-template-columns: 1fr;
    }

    .borbila-auth__footer {
        flex-direction: column;
    }
}
