﻿/* Styling umum */
body {
    font-family: Arial, sans-serif;
    background-color: #B99A81;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 40px 20px;
    box-sizing: border-box;

}

/* Kontainer utama */
.login-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Card login */
.login-card {
    display: flex;
    background-color: #EDE8D5;
    width: 60%;
    min-height: 420px;
    border-radius: 15px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Bagian kiri (logo) */
.login-left {
    background-color: #F5F1E3;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.logo {
    max-width: 80%;
}

/* Bagian kanan (form) */
.login-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 40px;
    text-align: center;
}

/* Judul login */
.login-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
    color: black;
}

.input-group,
.select-group,
.file-group {
    width: 100%;
    margin-bottom: 18px; /* tambah jarak antar grup */
    display: flex;
    flex-direction: column; /* susun input dan error vertikal */
    align-items: flex-start; /* error rata kiri */
}

    .input-group input,
    .select-group select,
    .file-group input {
        width: 100%;
        max-width: 600px;
        padding: 12px;
        border-radius: 5px;
        border: 1px solid #ccc;
        background-color: #5c3b24;
        font-size: 14px;
        box-sizing: border-box;
    }

/* Input */
.input-group {
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

    .input-group input {
        width: 100%;
        max-width: 600px;
        padding: 12px;
        border-radius: 5px;
        border: 1px solid #ccc;
        background-color: #F5F1E3;
        font-size: 14px;
    }

/* Styling kategori select agar tidak memengaruhi form lainnya */
.select-group {
    display: flex;
    justify-content: center;
    width: 100%;
}

    .select-group select {
        appearance: none; /* Optional: Hilangkan default panah browser */
        background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' class='bi bi-caret-down-fill' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14l-4.796-5.481C1.885 5.253 2.342 4.5 3.058 4.5h9.884c.716 0 1.173.753.607 1.159l-4.796 5.481a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px 16px;
        background-color: #F5F1E3;
    }

/* Styling file upload */
.file-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 92%;
}

    .file-group label {
        font-size: 14px;
        margin-bottom: 5px;
        color: #555;
    }

    .file-group input {
        width: 100%;
        max-width: 600px;
        padding: 10px;
        border-radius: 5px;
        border: 1px solid #ccc;
        background-color: #F5F1E3;
    }

.back-to-login {
    margin-top: 15px;
    text-align: center;
}

    .back-to-login a {
        color: #B99A81;
        text-decoration: none;
        font-size: 14px;
        font-weight: bold;
    }

    .back-to-login a:hover {
        text-decoration: underline;
    }

/* Tombol login */
.login-button {
    width: 100%;
    max-width: 600px;
    padding: 12px;
    border: none;
    background-color: #B99A81;
    color: black;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .login-button:hover {
        background-color: #A88B72;
    }

/* Styling pesan error email */
.error-message {
    color: red;
    font-size: 12px;
    margin-top: 4px;
    margin-left: 4px;
}



@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
        margin: 0;
        padding: 20px 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #B99A81;
    }

    .login-container {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .login-card {
        flex-direction: column;
        width: 90%;
        max-width: 400px;
        min-height: auto;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
        background-color: #EDE8D5;
    }

    .login-left {
        width: 100%;
        padding: 30px 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #F5F1E3;
    }

    .logo {
        max-width: 70%;
        height: auto;
    }

    .login-right {
        width: 100%;
        max-width: 320px; /* ✅ Sesuaikan dengan lebar logo */
        margin: 0 auto; /* ✅ Tengahin secara horizontal */
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .select-group select {
        width: 100% !important ; 
        max-width: 600px;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 5px;
        border: 1px solid #ccc;
        background-color: #F5F1E3;
        background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' class='bi bi-caret-down-fill' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14l-4.796-5.481C1.885 5.253 2.342 4.5 3.058 4.5h9.884c.716 0 1.173.753.607 1.159l-4.796 5.481a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        background-size: 12px 12px;
        appearance: none;
        box-sizing: border-box;
    }

    .select-group select option {
        font-size: 13px;
        padding:10px;
    }

    .input-group,
    .select-group,
    .file-group {
        width: 100%;
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .input-group input,
        .select-group select,
        .file-group input {
            width: 100%;
            max-width: 600px;
            padding: 12px;
            font-size: 14px;
            border-radius: 5px;
            border: 1px solid #ccc;
            background-color: #F5F1E3;
            box-sizing:border-box;
        }

        .file-group label
         {
            width: 100%;
            font-size: 13px;
            color: #555;
            text-align: left;
        }

    .login-button {
        width: 100%;
        padding: 12px;
        background-color: #B99A81;
        color: black;
        font-weight: bold;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }



        .login-button:hover {
            background-color: #A88B72;
        }

    .back-to-login {
        margin-top: 15px;
        text-align: center;
    }

        .back-to-login a {
            color: #B99A81;
            text-decoration: none;
            font-size: 14px;
            font-weight: bold;
        }

            .back-to-login a:hover {
                text-decoration: underline;
            }
    .error-message {
        color: red;
        font-size: 12px;
        margin-top: 4px;
        margin-left: 4px;
    }

}


