.login-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    pointer-events: none;
}

.login-popup.active {
    visibility: visible;
    pointer-events: auto;
	font-size: 0.95rem;
}

.login-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(64, 64, 64, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.login-popup.active .login-popup__overlay {
    transform: translateY(0);
}

.login-popup__content {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 40px 20px 30px;
    max-width: 560px;
    width: 95%;
    box-shadow: 0 0 30px rgba(0, 0, 0, .15);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.35s ease 0.25s, opacity 0.35s ease 0.25s;
}

.login-popup.active .login-popup__content {
    transform: translateY(0);
    opacity: 1;
}

.login-popup.active,
.login-popup.closing {
    visibility: visible;
    pointer-events: auto;
}

.login-popup.closing .login-popup__content {
    transform: translateY(100%);
    opacity: 0;
    transition-delay: 0s;
}

.login-popup.closing .login-popup__overlay {
    transform: translateY(0);
}

.login-popup.closing.closing-overlay .login-popup__overlay {
    transform: translateY(100%);
}

.login-popup__box h3 {
    font-size: 22px;
    color: #a9201f;
    text-align: left;
    margin-bottom: 20px;
    font-weight: 700
}

.login-popup__message {
    border-radius: 8px;
    padding: 12px 14px 12px 52px;
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.35;
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.login-popup__message--error {
    background: #fff2f2;
    border: 1px solid #e8b8b8;
    color: #a9201f;
	font-weight: bold;
}

.login-popup__message::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.login-popup__message--error::before {
    background-image: url('/assets/icons/intern/icon-intern-fehlgeschlagen.svg');
}

.login-popup form {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.login-popup label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-left: 14px;
    margin-bottom: -8px;
    background: #fff;
    z-index: 2;
    position: relative;
    width: fit-content;
    padding: 0 3px 0 3px;
	transform: translateX(3px);
}

.login-popup input {
    height: 50px;
    padding: 13px 15px 14px;
    border: 1.5px solid #404040 !important;
    border-radius: 10px !important;
    font-size: 15px;
    outline: none;
    background: #fff;
    color: #404040;
    position: relative;
    z-index: 1;
	font-weight: bold;
}

.login-popup input::placeholder {
    color: rgba(0, 0, 0, .35);
    font-style: italic
}

.login-submit-btn {
    background: #a9201f;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 14px 0;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background .3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px
}

.login-popup #login-form .login-submit-btn:disabled {
    background-color: #a9201f !important;
    border-color: #a9201f !important;
    color: #fff !important;
    opacity: 1 !important;
    box-shadow: none !important;
    filter: none !important;
}

.login-popup__links {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #aaa
}

.login-popup__links a {
    color: #999;
    text-decoration: none;
    margin: 0 5px
}

.login-popup__links a:hover {
    text-decoration: underline
}

.login-popup input:focus,
.login-popup textarea:focus,
.login-popup select:focus {
    outline: none !important;
    box-shadow: none !important;
}

.login-popup .login-check {
    display: flex;
    align-items: center;
}

.login-popup .form-check-input {
  border-radius: 10px !important;
  transform: scale(0.9);
  margin-left: -3px;
}

.login-popup .form-check-label {
    font-weight: normal;
    margin: 0;
}

.login-popup .form-check-input:checked {
    background-color: #a9201f;
    border-color: #a9201f;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-25%);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.form-check.login-check {
    display: flex;
    align-items: center;
    gap: 0;
    margin: -7px 0 5px 0;
    padding-left: 0;
}

.form-check.login-check .form-check-label {
    font-size: 0.95rem;
    line-height: 1.2;
    color: #3f3f3f;
    cursor: pointer;
    margin: 0;
	left: -8px;
	top: 1px;
}

.form-check.login-check .form-check-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 35px;
    height: 35px;
    margin: 0 0 0 -5;
    border: 2px solid #fff !important;
    border-radius: 6px;
    background: #e4e4e4;
    display: grid;
    place-content: center;
    cursor: pointer;
    position: relative;
	transform: scale(0.75);
}

.form-check.login-check .form-check-input::after {
    content: "";
    width: 22px;
	margin-top: -3px;
    height: 9px;
    border: 4px solid #444;
    border-top: 0;
    border-right: 0;
    transform: rotate(-45deg);
    opacity: 0;
}

.form-check.login-check .form-check-input:checked::after {
    opacity: 1;
}

.form-check.login-check .form-check-input:hover {
    border-color: #333;
}

.form-check.login-check .form-check-input:focus-visible {
    box-shadow: 0 0 0 3px rgba(85, 85, 85, .2);
}
.form-check.login-check .form-check-input,
.form-check.login-check .form-check-input:checked,
.form-check.login-check .form-check-input:indeterminate,
.form-check.login-check .form-check-input:focus {
    background-image: none !important;
    box-shadow: none !important;
}

.login-popup input:-webkit-autofill,
.login-popup input:-webkit-autofill:hover,
.login-popup input:-webkit-autofill:focus,
.login-popup input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: #404040 !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.login-popup input:-moz-autofill {
    background-color: transparent !important;
    background-image: none !important;
}

.login-popup input:autofill {
    background-color: transparent !important;
    background-image: none !important;
}

.login-popup input[type="password"]:-webkit-autofill,
.login-popup input[type="password"]:-webkit-autofill:hover,
.login-popup input[type="password"]:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: #404040 !important;
		font-size: 0.9rem !important;
}

.login-popup input[type="email"]:-webkit-autofill,
.login-popup input[type="email"]:-webkit-autofill:hover,
.login-popup input[type="email"]:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: #404040 !important;
		font-size: 0.9rem !important;
}
