@charset "UTF-8";
/*!
 * CoreUI - HTML, CSS, and JavaScript UI Components Library
 * @version v4.2.6
 * @link https://coreui.io/
 * Copyright (c) 2022 creativeLabs Łukasz Holeczek
 * License MIT  (https://coreui.io/license/)
 *//* CSS Reset and Base Styles */

:root {
    --primary-color: #3b82f6;
    --primary-gradient: linear-gradient(68deg,rgba(9, 52, 79, 1) 0%, rgba(37, 145, 207, 1) 79%);
    --welcome-bg: rgb(28, 58, 88);
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #d1d5db;
    --bg-light: #ffffff;
    --bg-body-desktop: linear-gradient(to right, #f9fafb 50%, var(--welcome-bg) 50%);
    --bg-body-mobile: var(--welcome-bg);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background 0.3s ease-in-out;
    color: var(--text-dark);
}

/* Main Container */
.container {
    display: flex;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Left Side: Login Form */
.login-section {
    width: 50%;
    padding: 4rem;
    /* margin-top: 100px; */
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    justify-content: center;
    align-items: center;
}

.login-content {
    width: 100%;
}

.logo {
    display: block;
    max-width: 220px; /* Sedikit lebih besar untuk desktop */
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    align-items: center;

}

.login-content h1 {
    font-size: 1.75rem; /* 28px */
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem; /* 16px */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
    color: #9ca3af;
    font-size: 0.875rem; /* 14px */
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    user-select: none; /* Mencegah seleksi teks pada ikon */
}

.login-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: var(--primary-gradient);
    color: var(--bg-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.footer {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.875rem; /* 14px */
    color: #9ca3af;
}

/* Right Side: Welcome Message */
.welcome-section {
    width: 100%;
    background-image: url('https://www.bee.id/wp-content/uploads/2021/01/tips-meningkatkan-omzet-penjualan-scaled.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--bg-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem;
    position: relative;
}

.welcome-section::before {
   content: "";
   position: absolute;
   top: 0px;
   right: 0px;
   bottom: 0px;
   left: 0px;
   background: linear-gradient(68deg,rgba(9, 52, 79, 1) 0%, rgba(37, 145, 207, 1) 79%);
   opacity: 0.5
}

.welcome-section h2 {
    font-size: 2.5rem; /* 40px */
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.welcome-section p {
    font-size: 1.125rem; /* 18px */
    font-weight: 400;
    opacity: 0.9;
}

/* Responsive Design: Tablet and Mobile */
@media (max-width: 992px) {
    .login-section, .welcome-section {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    body {
        background: var(--bg-body-mobile);
        padding: 1rem;
        align-items: flex-start; /* Form mulai dari atas */
        padding-top: 5vh;
    }

    .container {
        flex-direction: column;
        width: 100%;
        max-width: 420px;
        max-height: 560px;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

    .login-section {
        width: 100%;
        padding: 2rem;
        margin-top: 10px;
    }

    .welcome-section {
        display: none; /* Sembunyikan di mobile */
    }

    .logo {
        max-width: 180px;
        margin: 0 auto 2rem auto;
    }

    .footer {
        color: var(--text-light);
    }
}
