/* LIVBEN - Customer authentication */

.lv-auth-card {
    box-sizing: border-box;
    width: min(100%, 31.875rem);
    max-width: 31.875rem;
    min-width: 0;
    margin: 0 auto 2.75rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid #e1e7e3;
    border-radius: 0.875rem;
    background: #fff;
    color: #203328;
}

.lv-auth-card *,
.lv-auth-card *::before,
.lv-auth-card *::after {
    box-sizing: border-box;
}

.lv-auth-card h1 {
    margin: 0 0 1rem;
    color: #173b2b;
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* Authentication navigation */

.lv-auth-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0 0 1.25rem;
}

.lv-auth-tabs a {
    display: inline-flex;
    flex: 1 1 7.5rem;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 0.625rem 0.5rem;
    border: 1px solid #dce5df;
    border-radius: 0.5625rem;
    background: #f7faf8;
    color: #2d4938;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.lv-auth-tabs a:hover:not(.is-active) {
    border-color: #a9c8b7;
    background: #eef7f1;
}

.lv-auth-tabs a.is-active {
    border-color: #176c4c;
    background: #176c4c;
    color: #fff;
}

/* Forms */

.lv-auth-card form {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.lv-auth-card form label {
    display: grid;
    gap: 0.4375rem;
    min-width: 0;
    color: #344b3c;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5;
}

.lv-auth-card form input:not([type="hidden"]) {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0.625rem 0.75rem;
    border: 1px solid #cfdad3;
    border-radius: 0.5625rem;
    background: #fff;
    color: #203328;
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

.lv-auth-card form input:not([type="hidden"]):focus-visible,
.lv-auth-card form button:focus-visible,
.lv-auth-tabs a:focus-visible {
    outline: 3px solid #85c6a5;
    outline-offset: 2px;
}

.lv-auth-card form button {
    min-height: 47px;
    padding: 0.6875rem 0.9375rem;
    border: 0;
    border-radius: 0.5625rem;
    background: #176c4c;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
    cursor: pointer;
}

.lv-auth-card form button:hover:not(:disabled) {
    background: #11563c;
}

.lv-auth-card form button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Supporting text and feedback */

.lv-auth-help,
.lv-auth-info {
    color: #617367;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.lv-auth-help {
    margin-block-start: 1rem;
}

.lv-auth-message,
.lv-auth-error {
    padding: 0.75rem;
    border-radius: 0.5625rem;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.lv-auth-message {
    background: #ecf7ef;
    color: #176c4c;
}

.lv-auth-error {
    background: #fff1f0;
    color: #9b2d28;
}

/* Small screens */

@media (max-width: 640px) {
    .lv-auth-card {
        margin-block-start: 0.5625rem;
        padding: 1rem;
        border-radius: 0.75rem;
    }
}
