/* GOOGLE IMPOORT FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    font-family: 'Poppins', sans-serif;
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
}

:root{  
    /* Colors */
    --base-clr: #11121a;
    --second-clr:#56629d ;
    --line-clr: #42434a;
    --hover-clr: #222533;
    --text-clr: #e6e6ef;
    --accent-clr: #5e63ff;
    --secondary-text-clr: #cbd4fd;

    /* transisi */
    --tran-02: all 0.2s ease;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.4s ease;
    --tran-05: all 0.5s ease;
}

html{
    font-size: 12pt;
    color: var(--text-clr);
    text-align: center;
}

body{
    min-height: 100vh;
    background-image: url("../images/background.jpg");
    background-size: cover;
    background-position: right;
    overflow: hidden;
}

.wrapper{
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    /* background-color: var(--base-clr); */
    backdrop-filter: blur(5px);
    height: 100vh;
    width: max(40%, 600px);
    padding: 10px;
    border-radius: 0 20px 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
h1{
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
}
form{
    width: min(400px, 100%);
    margin-top: 20px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
form > div{
    width: 100%;
    display: flex;
    justify-content: center;
}
form label{
    flex-shrink: 0;
    height: 50px;
    width: 50px;
    background-color: var(--accent-clr);
    fill: var(--secondary-text-clr);
    color: var(--secondary-text-clr);
    border-radius: 10px 0 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 400;
}
form input{
    box-sizing: border-box;
    flex-grow: 1;
    min-width: 0;
    height: 50px;
    padding: 1em;
    font: inherit;
    border-radius: 0 10px 10px 0;
    border: 2px solid var(--secondary-text-clr);
    border-left: none;
    background-color: var(--secondary-text-clr);
    transition: var(--tran-03);
}
form input:hover{
    border-color: var(--secondary-text-clr);
}
form input:focus{
    outline: none;
    border-color: var(--accent-clr);
    border: 2px solid var(--accent-clr);
}
div:has(input:focus) > label{
    background-color: var(--hover-clr);
}
form input::placeholder{
    color: var(--base-clr);
}
form button{
    margin-top: 10px;
    border: none;
    border-radius: 1000px;
    padding: .85em 4em;
    background-color: var(--accent-clr);
    color: var(--text-clr);
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--tran-01);
}
form button:hover{
    background-color: var(--second-clr);
}
form button:focus{
    outline: none;
    background-color: var(--base-clr);
}
a{
    text-decoration: none;
    color: var(--accent-clr);
}
a:hover{
    text-decoration: underline;
    
}

@media(max-width : 1100px){
    .wrapper{
        width: min(600px, 100%);
        border-radius: 0;
    }
}
form div.incorrect label{
    background-color: #f06272;
}
form div.incorrect input{
    border-color: #f06272;
}
#error-message{
    color: #f06272;
}

.warning {
    display: block;         /* Pastikan elemen warning tampil sebagai blok */
    clear: both;            /* Menghindari tumpang tindih dengan elemen di sekitarnya */
    margin-top: 0.5rem;      /* Beri jarak di atas warning jika perlu */
    margin-bottom: 0.5rem;   /* Beri jarak di bawah warning sehingga form di bawahnya tidak tertutup */
}

.invalid-feedback {
    display: block;         /* Pastikan pesan error tampil sebagai blok */
    font-size: 0.875rem;    /* Ukuran font yang lebih kecil */
    color: #dc3545;         /* Warna merah sesuai standar bootstrap */
}

