@import url("/tokens.css");

#loginBack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--background);
    color: var(--text-primary);

    h2 {
        font-size: 32px;
        font-weight: 500;
        line-height: 38.73px;
        margin: 30px 0 20px;
        color: var(--text-primary);

        @media screen and (max-width: 500px) {
            font-size: 24px;
            text-indent: -5px;
        }
    }

    form {
        #input {
            display: flex;
            gap: 35px;
            margin-top: 5vh;
            position: relative;

            .show {
                right: 14px;
                bottom: 14px;
            }
        }

        .password-field {
            position: relative;
            width: fit-content;
        }

        .password-field .input-field {
            padding-right: 48px;
        }

        .password-toggle {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 2;
            border: none;
            background: transparent;
            color: var(--text-muted);
            padding: 0;
            margin: 0;
            float: none;
            line-height: 1;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .password-toggle:hover {
            color: var(--primary);
        }

        .password-toggle:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
            border-radius: 4px;
        }

        .input-field {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding-left: 17px;
            width: 500px;
            height: 50px;
            padding: 20px;
            padding-top: 10px;
            color: var(--text-primary);

            @media screen and (max-width: 500px) {
                width: 300px;
            }
        }

        .error {
            border: 1px solid var(--danger);
        }

        .input-field::placeholder {
            font-size: 14px;
            font-weight: 400;
            color: var(--text-muted);
        }

        #rad-check {
            margin-top: 23px;
            margin-bottom: 26px;
        }

        #check {
            transform: scale(1.7);
            margin-left: 8px;

            @media screen and (max-width: 500px) {
                transform: scale(1.2);
            }
        }

        .check-label {
            font-size: 15px;
            font-weight: 500;
            margin-left: 8px;
            color: var(--text-primary);

            @media screen and (max-width: 500px) {
                font-size: 12px;
            }
        }

        #form-btn {
            display: flex;
            flex-direction: column;
            margin-top: 20px;
        }

        #form-btn a {
            text-decoration: none;
            color: var(--primary);
            font-weight: 500;
        }

        #form-btn a:hover {
            color: var(--primary-hover);
            text-decoration: underline;
        }

        #btn {
            background: var(--primary);
            border: 0;
            border-radius: 10px;
            width: 500px;
            height: 50px;
            margin-bottom: 10px;
            color: var(--on-primary);
            font-size: 22px;

            @media screen and (max-width: 500px) {
                width: 300px;
            }
        }

        #btn:hover {
            background: var(--primary-hover);
        }

        #btn:active {
            background: var(--primary-active);
        }

        .btn-label {
            font-size: 15px;
            margin-left: 380px;
            font-weight: 500;
            color: var(--text-muted);

            @media screen and (max-width: 500px) {
                font-size: 12px;
                margin-left: 200px;
            }
        }
    }

    #login_ops {
        width: 367px;
        gap: 80px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 35px;

        @media screen and (max-width: 500px) {
            width: 300px;
            gap: 70px;
        }
    }

    .login_icons {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
    }
}

#header-con {
    display: flex;
    justify-content: center;
}

#header-con h2 {
    font-size: 32px;
    font-weight: 500;
    color: var(--text-primary);
}

#errorDisplay {
    color: var(--danger);
}

@media screen and (max-width: 1800px) {
    #text-con h2 {
        font-size: 32px;
    }

    #text-con p {
        font-size: 12px;
    }

    .input-field {
        width: 450px;
    }

    #btn {
        width: 450px;
    }

    #header-con {
        font-size: 20px;
    }

    #check {
        transform: scale(1.4);
    }

    .check-label {
        font-size: 12px;
    }

    .btn-label {
        font-size: 12px;
        margin-left: 350px;
    }
}

@media screen and (max-width: 1124px) {
    #header-con h2 {
        font-size: 22px;
        font-weight: 600;
    }

    #text-con h2 {
        font-size: 26px;
    }

    #text-con p {
        font-size: 10px;
    }

    #graphic-con {
        height: 53vh;
    }

    #header-con {
        font-size: 16px;
    }

    #check {
        transform: scale(1.4);
    }

    .check-label {
        font-size: 12px;
    }
}
