input,
button {
    box-sizing: border-box;
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.form-container {
    display: flex;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.form-content {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255);
    padding: 0;
    width: 90%;
    height: auto;
    overflow: auto;
    border-radius: 10px;
    overflow: hidden;
}

.form-image {
    width: 50%;
    height: 40rem;
    object-fit: cover;
    object-position: center;
}

.form-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.form-info {
    width: 50%;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form-info form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 90%;
}

.form-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
    color: #333;
}

.form-info label {
    font-size: 1rem;
    font-weight: regular;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: left;
}

.form-info input {
    margin-bottom: 1rem;
    text-align: left;
    border: 1px solid #bbb;
}

.form-info button {
    padding: 1rem;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    margin-bottom: 1rem;
}

.form-info button:hover {
    background-color: #555;
}

.form-info p {
    text-align: center;
    margin-top: 1rem;
}

.form-info a {
    color: #333;
    text-decoration: underline;
}

.form-info a:hover {
    color: #555;
}

.hidden {
    display: none;
}

.switchToForgot {
    font-size: 0.9rem;
    color: #8d8d8d;
    text-decoration: none;
    margin-bottom: 1rem;
}

.switchToForgot:hover {
    color: #000;
    text-decoration: underline;
}

.switchToForgot:hover {
    color: #000;
    text-decoration: underline;
}

.agreement-checkbox {
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.agreement-checkbox input[type="checkbox"] {
    width: auto;
    margin: auto 0;
}

.agreement-checkbox label {
    font-size: 14px;
    color: #666;
    text-align: left;
    margin: auto 0;
}

.agreement-checkbox a {
    color: #000000;
    text-decoration: underline;
}

.agreement-checkbox a:hover {
    text-decoration: underline;
}

@media (prefers-color-scheme: dark) {

    input,
    button {
        border: 1px solid #555;
    }

    .form-content {
        background-color: #2a2a2a;
    }

    .form-info {
        color: #ddd;
    }

    .form-info h2 {
        color: #ddd;
    }

    .form-info label {
        color: #ddd;
    }

    .form-info button {
        background-color: #000000;
    }

    .form-info button:hover {
        background-color: #777;
    }

    .form-info a {
        color: #bbb;
    }

    .form-info a:hover {
        color: #ddd;
    }

    .switchToForgot {
        color: #aaa;
    }

    .switchToForgot:hover {
        color: #fff;
    }
}

@media (max-width: 600px) {
    .form-image {
        display: none;
    }

    .form-info {
        width: 100%;
    }

    .form-content {
        flex-direction: column;
        width: 90%;
        height: auto;
    }

    input {
        font-size: 0.8rem;
        padding: 0.6rem;
    }

    button {
        font-size: 1rem;
        padding: 0.6rem;
    }

    .form-info h2 {
        font-size: 1.5rem;
    }

    .form-info label {
        font-size: 0.8rem;
    }

    .switchToForgot {
        font-size: 0.8rem;
    }
}