/* =====================================
   Reset dan Font Global
===================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
}

/* =====================================
   Body
===================================== */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("/imalah_app/resources/assets/images/filelogoimalahstore/imv.jpg");
    background-size: cover;
    background-position: center;
    padding: 20px;
    color: #fff;
}

/* =====================================
   Card Style (Login & Register)
===================================== */
.login-card,
.register-card {
    width: 100%;
    max-width: 440px;
    padding: 35px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px); /* reg: 14px, login: 8px -> pilih 8px untuk gabung */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    color: #fff;
    position: relative;
}

/* =====================================
   Judul & Deskripsi
===================================== */
.login-card h1,
.register-card h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 4px;
}

.login-card p,
.register-card p {
    text-align: center;
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 26px;
}

/* =====================================
   Form Group & Input
===================================== */
.form-group {
    position: relative;
    margin-bottom: 18px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 44px 14px 16px; /* login: 14px 44px 14px 16px, reg: 14px 16px -> gabungkan 44px kanan agar icon login tetap */
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    font-size: 14px;
}

.form-group input::placeholder {
    color: #eee;
}

.form-group select {
    appearance: none;
}

.form-group i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    box-shadow: none;
}

.toggle-btn {
    cursor: pointer;
}

/* =====================================
   Button Style
===================================== */
.btn-login,
.btn-submit,
.btn-next,
.btn-prev {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: #fff;
    color: #0a2862;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}

.btn-login:hover,
.btn-submit:hover,
.btn-next:hover,
.btn-prev:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* =====================================
   Error / Alert Box
===================================== */
.error-box,
.alert {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 13px;
    text-align: center;
}

.alert.success {
    background: #16a34a;
    color: #fff;
}

.alert.error,
.error-box {
    background: #dc2626;
    color: #fff;
}

/* =====================================
   Links
===================================== */
.login-link,
.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.login-link a,
.register-link a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover,
.register-link a:hover {
    text-decoration: underline;
}

/* =====================================
   Multi-Step Form (Register)
===================================== */
.step {
    display: none;
}

.step.active {
    display: block;
}

.btn-group {
    display: flex;
    justify-content: space-between;
}

/* =====================================
   Responsive
===================================== */
@media (max-width: 480px) {
    .login-card,
    .register-card {
        padding: 28px 22px;
    }
}