/* Reset & Base Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #faf7f2; /* Warna Dasar Soft Cream Pastel */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===================================================
   DESKTOP WARNING (Tampil Jika Dibuka di Laptop/PC)
   =================================================== */
#desktop-warning {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    background-color: #f2ebe4;
    padding: 20px;
}

.warning-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    max-width: 380px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.warning-icon {
    width: 75px;
    height: 75px;
    background-color: #fde8e8;
    color: #e57373;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin: 0 auto 20px auto;
}

.warning-card h2 {
    font-size: 20px;
    color: #333333;
    margin-bottom: 10px;
}

.warning-card p {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

/* Sembunyikan Aplikasi secara default di PC */
#app-container {
    display: none;
}

/* ===================================================
   MOBILE STYLING (Hanya Aktif di Layar Handphone <= 480px)
   =================================================== */
@media screen and (max-width: 480px) {
    
    /* Sembunyikan Pesan Warning PC saat di HP */
    #desktop-warning {
        display: none !important;
    }

    /* Tampilkan Tampilan Aplikasi Penuh */
    #app-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        min-height: 100vh;
        background-color: #faf7f2; /* Soft Cream Pastel */
        padding: 30px 24px;
    }

    .login-card {
        width: 100%;
        text-align: center;
    }

    /* Logo Duit Custom Pastel */
    .logo-wrapper {
        margin-bottom: 20px;
    }

    .logo-circle {
        width: 70px;
        height: 70px;
        border-radius: 22px;
        background: linear-gradient(135deg, #a8e6cf, #dbede3, #ffd3b6);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 8px auto;
        box-shadow: 0 8px 18px rgba(168, 230, 207, 0.4);
    }

    .logo-icon {
        font-size: 32px;
        color: #2b7a62;
    }

    .brand-title {
        font-size: 26px;
        font-weight: 700;
        color: #2b7a62;
        letter-spacing: 0.5px;
    }

    /* Judul & Subjudul */
    .title {
        font-size: 20px;
        font-weight: 700;
        color: #333333;
        margin-bottom: 4px;
    }

    .subtitle {
        font-size: 13px;
        color: #777777;
        margin-bottom: 28px;
    }

    /* Input Form */
    .login-form {
        text-align: left;
    }

    .input-group {
        margin-bottom: 18px;
    }

    .input-group label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #444444;
        margin-bottom: 8px;
    }

    .input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }

    .input-wrapper .icon {
        position: absolute;
        left: 16px;
        color: #55cca2;
        font-size: 15px;
    }

    .input-wrapper input {
        width: 100%;
        padding: 14px 16px 14px 44px;
        background-color: #eaf7f3; /* Mint Pastel Background */
        border: 1.5px solid #d0f0e6;
        border-radius: 16px;
        font-size: 13px;
        color: #333333;
        outline: none;
        transition: all 0.3s ease;
    }

    .input-wrapper input::placeholder {
        color: #92b1b0;
    }

    .input-wrapper input:focus {
        border-color: #55cca2;
        background-color: #ffffff;
        box-shadow: 0 0 0 4px rgba(85, 204, 162, 0.15);
    }

    .forgot-password {
        display: block;
        text-align: right;
        font-size: 12px;
        color: #3ca382;
        text-decoration: none;
        margin-top: 8px;
        font-weight: 500;
    }

    /* Tombol Masuk Mint Emerald Pastel */
    .btn-submit {
        width: 100%;
        padding: 15px;
        background-color: #55cca2;
        border: none;
        border-radius: 25px;
        color: #ffffff;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 1px;
        cursor: pointer;
        box-shadow: 0 6px 18px rgba(85, 204, 162, 0.35);
        margin-top: 10px;
        transition: all 0.3s ease;
    }

    .btn-submit:active {
        transform: scale(0.98);
        background-color: #45b78f;
    }

    /* Social Media Login Buttons */
    .social-text {
        font-size: 12px;
        color: #888888;
        margin-top: 24px;
        margin-bottom: 14px;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-bottom: 24px;
    }

    .social-btn {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background-color: #ffffff;
        border: 1px solid #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 16px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    }

    .social-btn.google { color: #ea4335; }
    .social-btn.apple { color: #000000; }
    .social-btn.facebook { color: #1877f2; }

    /* Footer Register Link */
    .register-footer {
        font-size: 12px;
        color: #666666;
    }

    .register-footer a {
        color: #3ca382;
        text-decoration: none;
        font-weight: 600;
    }
}