/* ========================================
   MODERN LOGIN PAGE STYLES
   ======================================== */

body {
    font-family: 'Poppins', sans-serif;
    background-color: #e9eff7; /* light blue-gray background representing the outer area */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    /* align-items: center removed to prevent top cutoff */
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Base large background gradient elements */
.login-page::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(13,110,253,0.15) 0%, rgba(13,110,253,0) 70%);
    z-index: -1;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(13,110,253,0.15) 0%, rgba(13,110,253,0) 70%);
    z-index: -1;
}

.split-card {
    display: flex;
    width: 100%;
    max-width: 800px;
    margin: auto; /* Centers the card safely even on small heights */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    overflow: hidden;
    min-height: 420px;
}

/* Left Panel */
.split-left {
    flex: 1.1;
    background: linear-gradient(135deg, #002c5f 0%, #0d6efd 100%);
    position: relative;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

/* Topographical abstract waves - CSS simulated */
.split-left::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    border: 1px solid rgba(255,255,255,0.15);
    transform: rotate(45deg);
    box-shadow: 
        inset 0 0 0 10px rgba(255,255,255,0.05),
        inset 0 0 0 20px rgba(255,255,255,0.05),
        inset 0 0 0 30px rgba(255,255,255,0.05);
}

.split-left::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -50px;
    width: 400px;
    height: 400px;
    border-radius: 50% 50% 40% 60% / 60% 40% 50% 50%;
    border: 1px solid rgba(255,255,255,0.2);
    transform: rotate(-20deg);
    box-shadow: 
        inset 0 0 0 15px rgba(255,255,255,0.05),
        inset 0 0 0 30px rgba(255,255,255,0.05),
        inset 0 0 0 45px rgba(255,255,255,0.05);
}

/* Dots Grid */
.split-left .deco-dots {
    position: absolute;
    top: 50px;
    right: 40px;
    width: 40px;
    height: 100px;
    background-image: radial-gradient(rgba(255,255,255,0.8) 2px, transparent 2px);
    background-size: 12px 12px;
    opacity: 0.6;
}

.deco-circle-1 {
    position: absolute;
    top: 100px;
    right: 150px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
}

.deco-circle-2 {
    position: absolute;
    bottom: 90px;
    left: 80px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
}

.deco-plus-1 {
    position: absolute;
    top: 60px;
    left: 150px;
    color: rgba(255,255,255,0.7);
    font-size: 24px;
    font-weight: 300;
}

.deco-plus-2 {
    position: absolute;
    bottom: 150px;
    right: 180px;
    color: rgba(255,255,255,0.7);
    font-size: 28px;
    font-weight: 300;
}

.left-content {
    position: relative;
    z-index: 10;
    max-width: 320px;
}

.left-content h1 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.left-content p {
    font-size: 1.05rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

.align-logo {
    max-height: 65px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.2));
}

@media (min-width: 769px) {
    .align-logo {
        margin-top: 4.5rem; /* Menyejajarkan dengan teks Logistik System di sebelah kanan */
    }
}

/* Right Panel */
.split-right {
    flex: 1;
    padding: 2rem 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
}

.form-wrapper {
    width: 100%;
    max-width: 320px;
}

.form-wrapper h2 {
    color: #4a4a4a;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.input-group-custom {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-group-custom i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a0a0;
    font-size: 1.1rem;
}

.input-group-custom input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid #dcdcdc;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #4a4a4a;
    transition: all 0.3s;
    outline: none;
}

.input-group-custom input::placeholder {
    color: #a0a0a0;
    font-weight: 400;
}

.input-group-custom input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    color: #666;
    cursor: pointer;
}

.remember-me input {
    margin-right: 8px;
    cursor: pointer;
    accent-color: #0d6efd;
}

.forgot-pwd {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-pwd:hover {
    color: #0d6efd;
}

.btn-signin {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #002c5f, #0d6efd);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .login-page {
        padding: 1rem;
    }

    .split-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .split-left {
        padding: 1.5rem 1rem;
        min-height: auto;
    }
    
    .left-content h1 {
        font-size: 1.3rem;
        margin-bottom: 0;
    }
    
    .left-content p {
        display: none; /* Hide description on mobile to save space */
    }
    
    .split-right {
        padding: 1.5rem 1rem;
    }
    
    .form-wrapper h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    /* Scale down decorations */
    .split-left::before {
        width: 200px;
        height: 200px;
        top: -30px;
        left: -30px;
    }
    
    .split-left::after {
        width: 250px;
        height: 250px;
        bottom: -50px;
        right: -30px;
    }
    
    .deco-dots, .deco-circle-1, .deco-circle-2, .deco-plus-1, .deco-plus-2 {
        opacity: 0.3; /* make them less prominent on mobile */
    }
}

@media (max-width: 400px) {
    .login-page {
        padding: 1rem 0.5rem;
    }
    .split-left {
        padding: 1.5rem 1rem;
    }
    .split-right {
        padding: 1.5rem 1rem;
    }
}