/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
    --pln-blue-dark: #0A2240;
    --pln-blue-medium: #1A3E6D;
    --pln-blue-light: #2A61AE;
    --pln-yellow: #FFD700;
    --pln-gray-text: #E0E0E0;
    --pln-white: #FFFFFF;
    --card-bg-light: rgba(10, 25, 47, 0.1);
    --card-border: #00bfff;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    display: flex;
    justify-content: right;
    padding-right: 5rem;
    align-items: center;
    min-height: 100vh;
    color: var(--pln-white);
    overflow: hidden;
    position: relative;
    background-image: url('/files/E-Asset Punagaya.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

    
    
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.9; }
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.header-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.app-title {
    text-align: left;
}

.app-title h1 {
    font-size: 3.5rem;
    color: var(--pln-yellow);
    margin: 0;
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.app-title h1 span {
    color: var(--pln-white);
    font-size: 2.2rem;
    font-weight: 600;
}

.app-title p {
    font-size: 1.1rem;
    color: var(--pln-gray-text);
    margin-top: 10px;
}

.logo-group {
    display: flex;
    gap: 20px;
}

.header-logo {
    height: 60px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.content-and-form-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    flex-grow: 1;
    width: 100%;
}

.side-content {
    max-width: 450px;
    text-align: left;
}

.side-content .slogan {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--pln-white);
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    margin: 0 0 20px 0;
}

.side-content p {
    font-size: 1.2rem;
    color: var(--pln-gray-text);
    line-height: 1.6;
}

/* carddd------------------------------------------------------------------------------------------------------ */

/* =========================
   Login Card Styling
========================= */
.login-card {
    background-color: var(--card-bg-light);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    width: 400px;
    max-width: 90%;
    text-align: center;
    animation: fadeInScale 0.8s ease-out;
    font-size: 10px;
}
.login-card h2 {
    font-size: 1.3rem;       /* ukuran teks */
    color: #FFF;           /* warna teks */
    text-align: center;    /* rata tengah */
    margin-bottom: 15px;   /* jarak ke bawah */
    font-weight: 500;      /* ketebalan */
}


/* =========================
   Logo Styling
========================= */
.logo-wrapper {
    text-align: center;
}

.logo-wrapper img {
    max-width: 145px;
    display: block;
    margin: 0 auto 20px auto; /* center + beri jarak bawah */
}

.logo-desktop { display: block; }
.logo-mobile { display: none; }


 /* Mobile: max width 768px (tablet ke bawah) */
        @media only screen and (max-width: 769px) {
          body.my-background {
            background-image: url('/files/loginhp.png'); /* Gambar mobile */
            background-size: cover; 
            background-position: center;
            background-attachment: scroll;
            height: 100%;
            width: 100%;
          }
          
        .logo-desktop { display: none; }
        .logo-mobile { display: block; } 
        
        .login-card {
            box-shadow: 0 20px 40px rgba(128, 128, 128, 0.7);
            margin-left: 3.7rem;
            position: center;
        }
          
        .login-card h2 {
            font-size: 18px;
            font-weight: 700;
        }
        
        
          
     }

/* =========================
   Animasi Login Card
========================= */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}




/* inputt--------------------------------------------*/

.input-group {
    position: relative;
    margin-bottom: 25px;
    text-align: left;
}

.input-group input {
    width: 100%;
    padding: 15px 45px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease, background-color 5000s ease-in-out 0s; /* tambahan untuk autofill */
    outline: none;
}

/* placeholder */
.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* autofill untuk WebKit (Chrome, Safari) */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.05) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s !important; /* menjaga warna autofill */
}




.input-group .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 10px;
}

.forgot-password {
    color: var(--pln-gray-text);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--pln-yellow);
}

.remember-me {
    color: var(--pln-gray-text);
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--pln-gray-text);
    border-radius: 4px;
    background-color: transparent;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remember-me input[type="checkbox"]:checked {
    background-color: var(--pln-yellow);
    border-color: var(--pln-yellow);
}

.remember-me input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--pln-blue-dark);
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-button {
    width: 90%;
    padding: 0.5rem;
    background: var(--pln-blue-dark) !important;  /* paksa biru gelap */
    color: var(--pln-white) !important;           /* paksa teks putih */
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    display: center;
    justify-content: center;
    align-items: center;
}



.login-button .fas {
    margin-right: 5px;
}

.login-button:hover {
    background: linear-gradient(90deg, var(--pln-blue-medium), var(--pln-blue-dark)) !important;
    color: var(--pln-white) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    transform: translateY(-3px);
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .header-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 30px;
    }

    .app-title {
        margin-bottom: 30px;
    }

    .app-title h1 {
        font-size: 2.8rem;
    }
    .app-title h1 span {
        font-size: 1.8rem;
    }
    .app-title p {
        font-size: 1rem;
    }

    .logo-group {
        justify-content: center;
        gap: 15px;
    }
    .header-logo {
        height: 50px;
    }

    .content-and-form-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .container-login {
        display: flex;
        justify-content: flex-end; /* Dorong ke kanan */
        align-items: center;       /* Tengah secara vertikal */
        min-height: 100vh;         /* Full tinggi layar */
        padding-right: 50px;       /* Jarak dari kanan */
    }


    .side-content {
        text-align: center;
    }
    .side-content .slogan {
        font-size: 2.5rem;
    }
    .side-content p {
        font-size: 1rem;
    }

    .login-card {
        padding: 30px;
        width: 350px;
    }
    .form-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .remember-me {
        margin-left: 0;
    }
    .login-button {
        padding: 14px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .app-title h1 {
        font-size: 2.2rem;
    }
    .app-title h1 span {
        font-size: 1rem;
    }
    .header-logo {
        height: 40px;
    }
    .login-card {
        padding: 25px;
        width: 100%;
    }
    .input-group input {
        padding: 12px 15px 12px 40px;
        font-size: 0.95rem;
    }
    .input-group .icon {
        left: 10px;
        font-size: 1rem;
    }
    .login-button {
        font-size: 1rem;
        padding: 12px;
    }
}