* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Ubuntu";
}

body,
html {
    height: 100%;
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
    /* Ensure absolute positioning within */
}

.form-container .error {
    color: red;
    font-size: 14px;
    margin-top: -5px;
    margin-bottom: 5px;
    text-align: left;
}

.background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(../../e-asmara/dor.png);
    background-size: cover;
    /* Ensure the image covers the full screen */
    background-repeat: no-repeat;
    background-position: center;
    transform: scale(1);
    /* Set scale to 1 for full-screen coverage */
    transform-origin: center;
    z-index: -1;
    opacity: 0.1;
}

.left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: 5px solid white;
    z-index: -1;
    /* border-radius: 40px; */
}

.left {
    flex: 0 0 60%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: white;
    overflow: hidden;
    /* margin-right: 5px; */
    z-index: 1;
    /* border-radius: 40px; */
}

.left .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.left .background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: brightness(0.7); */
    /* border-radius: 40px; */
    clip-path: polygon(0 0, 100% 0, 100% 0%, calc(100% - 45px) 100%, 0 100%);
}

.carousel-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* border-radius: 40px; */
}

.carousel-image.active {
    opacity: 1;
}

.content {
    z-index: 1;
    text-align: left;
}

.right {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Keep the image centered */
    padding: 40px;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.form-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.form-container h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="tel"],
.form-container input[type="number"],
.form-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.form-container input[type="text"]::placeholder,
.form-container input[type="email"]::placeholder,
.form-container input[type="tel"]::placeholder,
.form-container input[type="number"]::placeholder,
.form-container input[type="password"]::placeholder {
    color: #afa8a8;
    /* Ganti dengan warna yang Anda inginkan */
    opacity: 1;
}

.form-container input[type="submit"] {
    background: #e74c3c;
    color: white;
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 1.1rem;
}

.form-container input[type="submit"]:hover {
    background: #c0392b;
}

.form-container .social-login {
    margin: 10px 0;
}

.form-container .social-login button {
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-container .social-login button img {
    width: 20px;
    height: 20%;
    margin-right: 10px;
}

.form-container .links {
    margin-top: 20px;
}

.form-container .links a {
    color: #666;
    text-decoration: none;
    /* margin: 0 5px; */
    font-size: 0.9rem;
}

.avatar {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
}

.avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.avatar p {
    margin: 0;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    bottom: 20px;
    right: 60px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.carousel-controls button {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    padding: 10px;
    border-radius: 50%;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid white;
}

.carousel-controls button:hover {
    background: rgba(255, 255, 255, 0.6);
}

.img-right {
    margin-bottom: 20px;
}

.p-right {
    margin-bottom: 15px;
    font-weight: 800;
    color: #00000099;
}

.form-container .links a.sign-up {
    color: #009fff;
    font-weight: #009fff;
}

.shadowed-image {
    width: 300px;
    /* Sesuaikan ukuran gambar */
    height: auto;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), */
    /* Bayangan lembut */
    /* 0 12px 24px rgba(0, 0, 0, 0.2); */
    /* Bayangan lebih dalam */
    border-radius: 10px;
    /* Sudut melengkung */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* background: #ffffff99; */
    /* Efek transisi */
}

.shadowed-image:hover {
    transform: translateY(-10px);
    /* Efek melayang saat di-hover */
    /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2),
        0 24px 48px rgba(0, 0, 0, 0.3); */
    /* Bayangan lebih intens saat di-hover */
}

.input-group {
    position: relative;
    margin: 0;
}

.input-group input[type="password"] {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #ccc;
}

@media only screen and (max-width: 768px) {
    .left {
        display: none;
    }

    .right {
        flex: 0 0 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Keep the image centered */
        padding: 40px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Untuk smooth scrolling pada perangkat iOS */
    }

    .get-img-right {
        width: 100px;
    }
}