* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: #F6F7F8;
}

/*   :::::::   content wrapper   :::::::   */
.signup-content-box {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 96vw;
    max-width: 1440px;
    height: auto;
    min-height: 880px;
    position: relative;
    overflow: hidden;
}

/*   :::::::   'not a user' login   :::::::   */
.signup-logo-box {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
}

.logo,
.logo img {
    height: 100px;
    object-fit: contain;
}

#Ebene_1 {
    width: 120px;
    height: 75px;
}

/*   :::::::   page 'Login'   :::::::   */
.signup-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 598px;
    height: 595px;
    min-height: 449px;
    background-color: rgb(255, 255, 255);
    border-radius: 30px;
    position: absolute;
}

/*   :::::::   'signup' headline   :::::::   */
.sgnp-h1 {
    position: relative;
    margin-bottom: 48px;
    width: 315px;
    height: 89px;
    gap: 16px;
    text-align: center;
}

.arrow-link {
    position: absolute;
    left: -88px;
    top: 40%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 999;
}

.arrow-link img {
    width: 32px;
    height: 32px;
}

.sgnp-h1 h1 {
    font-size: 47px;
    font-weight: 700;
    position: relative;
}

.sgnp-h1 h1::after {
    content: "";
    display: block;
    width: 40%;
    height: 8px;
    border-bottom: 3px solid #29ABE2;
    margin-top: 12px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/*   :::::::   signup form   :::::::   */
.sgnp-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 90%;
}

.sgnp-form form {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
}

/*   :::::::   email und pw   :::::::   */
.name-wrapper,
.email-wrapper,
.pw-wrapper,
.rep-pw-wrapper {
    width: 422px;
    height: 48px;
    color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 16px;
}

.name-wrapper:hover,
.email-wrapper:hover,
.pw-wrapper:hover,
.rep-pw-wrapper:hover {
    border-color: #007bff;
}

.name-wrapper input,
.email-wrapper input,
.pw-wrapper input,
.rep-pw-wrapper input {
    width: 100%;
    height: 100%;
    border: none;
    font-size: 1em;
    outline: none;
    padding: 0 16px 0 0;
    background: transparent;
}

#pwIcon,
#repPwIcon {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;

}

.cursor-pointer {
    cursor: pointer;
}

.sgnp-button-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin-top: 24px;
    gap: 20px;
}

.signup {
    width: 124px;
    height: 40px;
    padding: 8px 16px 18px 16px;
    border: none;
    border-radius: 8px;
    background-color: #2A3647;
    gap: 10px;
    color: rgb(255, 255, 255);
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;

}

.signup:hover {
    background-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.signup:disabled {
    background-color: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;

}

.text-sgnp {
    width: 110px;
    height: 40px;
    padding: 8px 24px 18px 24px;
    border: none;
    border-radius: 8px;
    background-color: #2A3647;
    gap: 10px;
    color: rgb(255, 255, 255);
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;

}

#error,
#errorPrivPol {
    width: 422px;
    height: 16px;
    color: red;
    font-size: 0.7em;
    margin-block-start: -10px;
}

.error-highlight {
    border-color: red !important;
}

#errorPrivPol {
    display: flex;
    justify-content: center;
    align-items: center;

}

/*   :::::::   custom checkbox privacy policy   :::::::   */
.confirm-priv-pol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;

}

.confirm-priv-pol label {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.confirm-priv-pol input[type="checkbox"] {
    cursor: pointer;
    opacity: 0;
    position: absolute;
}

.confirm-priv-pol label::before {
    content: url('../assets/svg/box-unchecked.svg');
    display: inline-block;
    width: 1em;
    height: 1em;
    /* border: .05em solid #2A3647; */
    border-radius: .15em;
    margin-right: .5em;
    cursor: pointer;
}

.confirm-priv-pol label:hover::before,
.confirm-priv-pol input[type="checkbox"]:hover+label::before,
.confirm-priv-pol input[type="checkbox"]:focus+label::before {
    box-shadow: 0px 4px 4px 0px #00000040;
    background: #EDF2FA;
}

.confirm-priv-pol input[type="checkbox"]:checked+label::before {
    content: url('../assets/svg/box-checked.svg');
    width: 1em;
    height: 1em;
    border: none;
}

.chb-priv-pol {
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
}

.signup-msg {
    width: 320px;
    height: 40px;
    padding: 0.5em 1em;
    border: none;
    border-radius: 8px;
    background-color: #2A3647;
    color: rgb(255, 255, 255);
    font-size: 1em;
    font-weight: 500;
    animation: move 0.6s ease-in 0.16s 1 forwards;
    z-index: 999;
    position: absolute;
    bottom: -50%;
    text-align: center;
}

@keyframes move {
    0% {
        bottom: -50%;
    }

    100% {
        bottom: 48%;
    }
}

/*   :::::::   Privacy Policy and Legal notice  :::::::   */
.priv-polce-legl-note-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 48px;
    position: absolute;
    bottom: 8px;
}

.prvt-polce-legl-note {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 500px;
    gap: 24px;
}

.priv-legal {
    gap: 10px;
    color: #A8A8A8;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: transparent;
}

.priv-polce-link {
    padding-left: 4px;
}

.priv-legal:hover {
    text-shadow: 1px 1px 2px #00000040;
}

.backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.d-none {
    display: none;
}

/*   :::::::   media query  :::::::   */
@media screen and (width < 640px) {
    .signup-content {
        width: 88%;
    }

    .name-wrapper,
    .email-wrapper,
    .pw-wrapper,
    .rep-pw-wrapper,
    #loginForm {
        width: 88%;

    }

    .arrow-link {
        left: 2px;
    }

    #error {
        width: 88%;
    }
}

@media screen and (width < 540px) {
    .signup-content {
        width: 88%;
        height: 64%;
    }

    .arrow-link {
        left: -10px;
    }

    .name-wrapper,
    .email-wrapper,
    .pw-wrapper,
    .rep-pw-wrapper,
    #loginForm {
        width: 88%;
    }

    #error {
        width: 88%;
    }
}

@media screen and (370px <= width <= 428px) {
    .signup-logo-box {
        top: 47px;
    }

    .signup-content {
        width: 88%;
        height: 64%;
    }

    .name-wrapper,
    .email-wrapper,
    .pw-wrapper,
    .rep-pw-wrapper,
    #loginForm {
        width: 88%;
    }

    .arrow-link {
        left: 12px;
    }

    #error {
        width: 88%;
        margin-block-start: -5px;
    }

    .sgnp-button-box {
        margin-top: 24px;
    }
}

@media screen and (width < 370px) {
    .arrow-link {
        left: 32px;
    }

    .sgnp-h1 {
        margin-bottom: 32px;
    }

    .signup-content-box {
        height: 665px;
        min-height: 100%;
    }

    .signup-content {
        top: 132px;
        height: 57%;
    }

    .name-wrapper, .email-wrapper, .pw-wrapper, .rep-pw-wrapper {
        height: 40px;
    }

    .sgnp-form form {
        gap: 10px;
    }

    #error, #errorPrivPol {
        width: 88%;
        margin-block-start: -5px;
    }

    .priv-polce-legl-note-box {
        /* bottom: 24px; */
        bottom: 88px;
    }
}

@media screen and (height <= 740px) {
    .sgnp-h1 {
        height: 64px;
        margin-top: 4px;
    }

    .sgnp-h1::after {
        margin-top: 4px;
    }

    .sgnp-h1 h1 {
        font-size: 54px;
    }

    .sgnp-form form {
        gap: 9px;
    }

    .signup-content {
        height: 56%;
    }

    .name-wrapper, .email-wrapper, .pw-wrapper, .rep-pw-wrapper {
        height: 40px;
    }

    .sgnp-button-box {
        margin-top: 16px;
    }

    .priv-polce-legl-note-box {
        bottom: 12px;
    }

    .signup { 
        height: 38px;
    }
}

@media screen and (height <= 670px) {
    .signup-logo-box {
        top: 106px;
    }

    .signup-content {
        height: 54%;
    }

    .arrow-link {
        top: 32px;
    }

    .sgnp-button-box {
        gap: 10px;
    }

    .confirm-priv-pol {
        margin-top: 6px;
    }

}

