﻿.auth-background {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--neutral-gray-light);
}

.auth-container {
    width: 700px;
    background-color: var(--white);
    border-radius: 12px;
    padding: 60px;
    margin-top: 30px;
    margin-bottom: 70px;
    margin-left: 15px;
    margin-right: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.auth-container-large {
    width: 90% !important;
    max-width: 90% !important;
    display: block !important;
    text-align: left;
    scrollbar-width: thin;
    scrollbar-color: var(--Zahlwerk-primary) transparent;
}

.auth-container-large::-webkit-scrollbar {
    width: var(--scrollbar-size, 8px);
    height: var(--scrollbar-size, 8px);
}

.auth-container-large::-webkit-scrollbar-track {
    background: transparent;
}

.auth-container-large::-webkit-scrollbar-thumb {
    background-color: var(--Zahlwerk-primary);
    border-radius: 4px;
    border: none;
}

.auth-container-large::-webkit-scrollbar-thumb:hover {
    background-color: var(--Zahlwerk-dark-primary);
}

.auth-container-large::-webkit-scrollbar-button,
.auth-container-large::-webkit-scrollbar-button:single-button {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

    .auth-container-large .auth-header-container {
        margin-bottom: 32px;
    }

.auth-content {
    width: 100%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.auth-card {
    width: 100%;
    max-width: 580px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.logo-name-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo {
    width: 100%;
    max-width: 230px;
    height: 73px;
}

.auth-header-container h1 {
    margin-bottom: 0;
    text-align: center;
    font-size: 34px;
    font-weight: 400;
    line-height: 42px;
    outline: none;
}

.auth-header-container > a {
    display: block;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    /* gap: 20px; */
}

.auth-input-group {
    display: flex;
    flex-direction: column;
}

.input-pair {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.input-pair .input-container {
    flex: 1;
    min-width: 48%;
}

.top-label-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.top-label-field > .input-label,
.top-label-field > .select-label,
.top-label-field > .dropdown-label,
.top-label-field > .custom-floating-label {
    position: static !important;
    transform: none !important;
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: var(--Zahlwerk-primary);
    line-height: 1;
    background: transparent;
}

.auth-input-group .input-container,
.input-pair .input-container,
.modal-input-pair .input-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input.field {
    width: 100%;
    height: 56px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--Zahlwerk-light-gray);
    border-radius: 5px;
    background-color: var(--Zahlwerk-white);
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input.field:focus {
    outline: none;
    border-color: var(--Zahlwerk-primary);
    box-shadow: 0 0 0 2px var(--Zahlwerk-primary);
}

.input-label {
    position: static;
    font-size: 12px;
    color: var(--Zahlwerk-primary);
    line-height: 1;
    margin: 0;
}

.select-label {
    position: static;
    margin: 0;
    line-height: 1;
}

.input-label.required::after,
.select-label.required::after {
    content: " *";
    color: var(--Zahlwerk-error);
}

.input-container.disabled .input-label,
.input-container.disabled .select-label,
.input-container.disabled .dropdown-label,
.input-container.disabled .custom-floating-label {
    color: var(--Zahlwerk-disabled-grey);
}

.select-label {
    font-size: 12px;
    color: var(--Zahlwerk-primary);
}

input::-ms-reveal,
input::-ms-clear {
    display: none !important;
}

.button-zahlwerk.wide {
    width: 100%;
    padding: 12px;
    text-align: center;
    margin-bottom: 10px;
}

input[type='checkbox'] {
    --checkbox-input-radius: 18px;
    width: var(--checkbox-input-radius);
    height: var(--checkbox-input-radius);
    border: 2px solid var(--Zahlwerk-primary);
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--Zahlwerk-white);
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
    z-index: 1;
}

input[type='checkbox'] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--Zahlwerk-primary);
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--Zahlwerk-white);
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

input[type='checkbox']:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    background-color: rgba(0, 138, 157, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

input[type='checkbox']:focus::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 138, 157, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

input[type='checkbox']:active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    background-color: rgba(0, 138, 157, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

input[type='checkbox']:checked {
    background-color: var(--Zahlwerk-primary);
    border-color: var(--Zahlwerk-primary);
}

input[type='checkbox']:checked::after {
    content: '✓';
    color: var(--Zahlwerk-white);
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 18px;
}

.checkbox-container {
    --checkbox-label-line-height: 24px;
    display: flex;
    gap: 10px;
}

.checkbox-container input[type='checkbox'] {
    flex: none;
    top: calc((var(--checkbox-label-line-height) - var(--checkbox-input-radius)) / 2);
}

.checkbox-label {
    line-height: 1.5;
    line-height: var(--checkbox-label-line-height);
    cursor: pointer;
}

.link-text {
    color: var(--Zahlwerk-primary);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.3s;
}

.link-text:hover {
    color: var(--Zahlwerk-dark-primary);
    text-decoration: underline;
}

.info-text {
    text-align: center;
    color: var(--Zahlwerk-light-gray);
    line-height: 1.5;
    margin-top: 10px;
}

.tenant-header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 42px;
    text-align: center;
}

.tenant-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-footer {
    width: 100%;
    height: 40px;
    background-color: var(--Zahlwerk-primary);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    font-size: 14px;
    text-align: center;
}

.footer-text {
    margin: 0;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--Zahlwerk-white) inset;
    transition: background-color 5000s ease-in-out 0s;
    border-color: var(--Zahlwerk-light-gray);
}

input.input.field.field-40 {
    height: 40px;
}

.input.field.field-white {
    background-color: var(--Zahlwerk-white) !important;
}

textarea.input.field.note-field {
    height: 120px;
    resize: vertical;
}
