/* =====================================================
 * RESET & BASE
 * ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background: #000;
}

/* =====================================================
 * BACKGROUND SECTION
 * ===================================================== */
section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    background: url('/assets/4z3s/img/berkah-ananda.jpeg') no-repeat center;
    background-size: cover;
    animation: animateBg 10s linear infinite;
}

@keyframes animateBg {
    to {
        filter: hue-rotate(360deg);
    }
}

/* =====================================================
 * GLASS LOGIN / REGISTER BOX
 * ===================================================== */
.login-box {
    width: 600px;
    max-width: 100%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
}

/* =====================================================
 * TITLE
 * ===================================================== */
.login-box h2 {
    font-size: 2em;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

/* =====================================================
 * ROW & COLUMN FLEX
 * ===================================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.col-md-4,
.col-md-6 {
    flex: 1 1 calc(50% - 15px);
}

@media (max-width: 768px) {

    .col-md-4,
    .col-md-6 {
        flex: 1 1 100%;
    }
}

/* =====================================================
 * INPUT BOX (TEXT / PASSWORD / SELECT)
 * ===================================================== */
.input-box,
.select-box {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    border-bottom: 2px solid #fff;
}

.input-box input,
.select-box select {
    width: 100%;
    height: 45px;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 0 45px 0 10px;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 10px;
    color: #fff;
    font-size: 0.9em;
    transform: translateY(-50%);
    pointer-events: none;
    transition: 0.3s ease;
}

.input-box input:focus~label,
.input-box input:valid~label,
.select-box select:focus~label,
.select-box select:valid~label {
    top: -6px;
    font-size: 0.75em;
    color: #f8f9fa;
}

/* =====================================================
 * ICONS
 * ===================================================== */
.input-box .icon,
.select-box .icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-box input {
    padding-right: 48px;
    /* ruang aman icon */
}

/* =====================================================
 * SELECT BOX
 * ===================================================== */
.select-box select {
    appearance: none;
    cursor: pointer;
}

.select-box select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.select-box select option {
    color: #000;
}

/* =====================================================
 * CAPTCHA
 * ===================================================== */
.captcha-box {
    margin-top: 10px;
    text-align: center;
}

.captcha-box img {
    width: 100%;
    max-width: 300px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 10px;
}

.captcha-box input.captcha-input {
    width: 100%;
    padding: 10px 0;
    text-align: center;
    letter-spacing: 4px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
}

.captcha-box input.captcha-input::placeholder {
    text-align: center;
}

/* =====================================================
 * BUTTON
 * ===================================================== */
button {
    width: 100%;
    height: 45px;
    margin-top: 20px;
    background: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
}

/* =====================================================
 * REGISTER / LOGIN LINK
 * ===================================================== */
.register-link {
    margin-top: 15px;
    text-align: center;
}

.register-link a {
    color: #fff;
    text-decoration: underline;
}


/* =====================================================
 * RESPONSIVE
 * ===================================================== */
@media (max-width: 992px) {
    .login-box {
        width: 90%;
        padding: 20px;
    }
}


/* Scroll Top Button */
#scrollTop {
    position: fixed;
    bottom: 20px;
    right: 5px;
    border: none;
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    background: #0d6efd;
    color: #fff
}


@media (max-width: 360px) {
    .login-box {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 15px;
    }

    .input-box .icon,
    .select-box .icon {
        font-size: 0.9rem;
        right: 8px;
    }

    .input-box input,
    .select-box select {
        padding-right: 36px;
    }
}


/* =====================================================
 * RESPONSIVE ICON (INPUT / SELECT)
 * ===================================================== */
@media (max-width: 576px) {

    .input-box .icon,
    .select-box .icon {
        font-size: 1rem;
        /* dari 1.2rem */
        right: 5px;
        /* lebih rapat */
    }

    .input-box input,
    .select-box select {
        padding-right: 20px;
        /* sesuaikan ruang icon */
    }
}


/* =====================================================
 * FLOATING SOCIAL GROUP (LEFT)
 * ===================================================== */
.floating-social {
    position: fixed;
    right: 10px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.social-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: scale(1.1);
}

/* WARNA TIAP SOSIAL */
.social-btn.whatsapp {
    background-color: #25D366;
}

.social-btn.facebook {
    background-color: #1877F2;
}

.social-btn.instagram {
    background: radial-gradient(circle at 30% 110%,
            #fdf497 0%, #fdf497 5%, #fd5949 45%,
            #d6249f 60%, #285AEB 90%);
}

.social-btn.youtube {
    background-color: #FF0000;
}

.social-btn.home {
    background-color: #919294;
}

@media (max-width: 576px) {

    .floating-home,
    .floating-whatsapp {
        right: 10px;
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .floating-home {
        bottom: 82px;
    }

    .floating-whatsapp {
        bottom: 16px;
    }

    .floating-social {
        left: 16px;
        bottom: 82px;
    }

    .social-btn {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}
