/* RESET & FONT */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* BACKGROUND PAGE */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url(foto/bekgrun.jpg) no-repeat center center fixed;
    background-size: cover;
}

/* CARD / GLASS LOGIN-REGISTER */
.wrapper {
    width: 420px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(6px);
    color: #fff;
    border-radius: 12px;
    padding: 30px 40px;
}

/* JUDUL */
.wrapper h1 {
    color: #fff;
    font-size: 32px;
    text-align: center;
    margin-bottom: 5px;
}

.wrapper .subtitle {
    text-align: center;
    font-size: 13px;
    color: #d1d1d1;
    margin-bottom: 15px;
}

/* PESAN INFO / ERROR DARI PHP */
.alert {
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.alert.error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.7);
    color: #ffcdd2;
}

.alert.success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.7);
    color: #c8e6c9;
}

/* INPUT + ICON */
.wrapper .input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 18px 0;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 40px;
    font-size: 14px;
    color: #fff;
    padding: 0 45px 0 18px;
}

.input-box input::placeholder {
    color: #dddddd;
    font-size: 13px;
}

.input-box i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #ffffff;
}

/* BUTTON */
.wrapper .btn {
    width: 100%;
    height: 45px;
    background: #ffffff;
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    font-size: 15px;
    color: #333;
    font-weight: 600;
    transition: 0.15s ease;
}

.wrapper .btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid #ffffff;
}

/* LINK REGISTER */
.wrapper .register-link {
    font-size: 13px;
    text-align: center;
    margin: 18px 0 5px;
    color: #d1d1d1;
}

.register-link p a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.register-link p a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .wrapper {
        width: 90%;
        padding: 24px 24px;
    }

    .wrapper h1 {
        font-size: 28px;
    }
}

.input-box input:-webkit-autofill,
.input-box input:-webkit-autofill:hover,
.input-box input:-webkit-autofill:focus,
.input-box input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(0,0,0,0) inset !important; /* bikin transparan */
    -webkit-text-fill-color: #fff !important;                          /* teks tetap putih */
    background-color: transparent !important;
    transition: background-color 9999s ease-out 0s;
}
