@import url('../../../porto/assets/css/fonts.css');
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #00796B;
}

.login-box {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 320px;
}

.login-box h2 {
    margin-bottom: 40px;
    color: #333;
    font-size: 24px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
}

/* Container untuk input dan label */
.input-container {
    position: relative;
    width: 90%;
    margin-bottom: 30px;
}

.input-container input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Josefin Sans', sans-serif;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Placeholder bawaan */
.input-container input::placeholder {
    color: #999;
    transition: opacity 0.3s ease;
}

/* Menghilangkan placeholder saat input difokuskan */
.input-container input:focus::placeholder {
    opacity: 0;
}

/* Efek border dan shadow saat fokus */
.input-container input:focus {
    border-color: #00796B;
    box-shadow: 0 0 5px rgba(0, 121, 107, 0.5);
}

/* Label yang akan melayang */
.input-container label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
    padding: 0 5px;
    pointer-events: none;
    transition: all 0.3s ease;
    opacity: 0;  /* Awalnya label tidak terlihat */
}

/* Pindahkan label ke atas jika input fokus atau ada isinya */
.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label {
    top: -10px;
    left: -3px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Josefin Sans', sans-serif;
    color: #00796B;
    opacity: 1;  /* Label terlihat saat input fokus atau ada nilai */
}

/* Tombol submit */
.login-box input[type="submit"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #00796B;
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Josefin Sans', sans-serif;
    transition: background-color 0.3s ease;
}

.login-box input[type="submit"]:hover {
    background-color: #004D40;
}
