:root {
    --primary: #194B78;
    --primary-dark: #123758;
    --primary-light: #2A5E8E;
    --secondary: #557B9C;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-color: #CBD5E1;
    --border-focus: #194B78;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Nunito', sans-serif;
}

body {
    min-height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(34, 82, 126) 0%, rgba(64, 108, 148) 35%, rgba(105, 143, 177) 70%, rgba(170, 197, 223) 100%);
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
}

.login-page-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* Main Two-Column Card Container */
.login-main-card {
    background: #ffffff;
    width: 100%;
    max-width: 980px;
    min-height: 540px;
    border-radius: 12px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35);
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 8px;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

/* -------------------------------------------------------------
   LEFT COLUMN: HERO BANNER / IMAGE SIDE
------------------------------------------------------------- */
.login-hero-side {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 520px;
    background-color: var(--primary-dark);
    background-image: url('https://foto.wartaekonomi.co.id/files/arsip_foto_2021_06_25/logistik_190647_small.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

/* Overlay gradient on the hero image */
.login-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(25, 75, 120, 0.35) 0%, rgba(15, 45, 75, 0.2) 35%, rgba(10, 28, 48, 0.92) 100%);
    z-index: 1;
}

/* Direct Floating Logo on Top-Left (No Card Box) */
.hero-logo-box {
    position: relative;
    z-index: 2;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    box-shadow: none;
    padding: 8px 6px;
}

.hero-logo-box img {
    height: 58px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    filter: none;
    box-shadow: none;
}

.hero-logo-box i {
    font-size: 38px;
    color: #ffffff;
    filter: none;
}

/* Hero Content at the Bottom */
.hero-bottom-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    margin-top: auto;
    padding: 6px 4px 6px 4px;
}

.hero-title {
    font-size: 23px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
    line-height: 1.6;
}

/* Tag Pill Badges */
.hero-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.hero-tag-pill {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 11.5px;
    font-weight: 500;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.hero-tag-pill:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.hero-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-block;
}

/* -------------------------------------------------------------
   RIGHT COLUMN: FORM SIDE
------------------------------------------------------------- */
.login-form-side {
    padding: 24px 34px 20px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Top Welcome Badge (Attached to left image side like Hyper-Edu) */
.form-top-badge-container {
    display: flex;
    justify-content: flex-start;
    margin-left: -46px;
    margin-top: -8px;
    margin-bottom: 24px;
}

.form-top-badge {
    background: linear-gradient(135deg, #194B78 0%, #2E5C87 100%);
    color: #ffffff;
    border-radius: 0 20px 20px 0;
    padding: 7px 20px 7px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 2px 4px 12px rgba(25, 75, 120, 0.22);
    display: inline-block;
}

/* Header Text */
.form-heading-area {
    margin-bottom: 20px;
}

.form-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    letter-spacing: -0.4px;
}

.form-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

/* Form Controls */
.form-group-custom {
    margin-bottom: 16px;
}

.form-label-custom {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.input-field-custom {
    width: 100%;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
    color: var(--text-main);
    background-color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

.input-field-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 75, 120, 0.15);
}

.input-field-custom::placeholder {
    color: #94A3B8;
    font-size: 13px;
}

/* Password Input with Toggle Icon */
.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group .input-field-custom {
    padding-right: 42px;
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    font-size: 19px;
    color: #94A3B8;
    cursor: pointer;
    z-index: 2;
    transition: color 0.15s ease;
    user-select: none;
}

.password-toggle-btn:hover {
    color: var(--primary);
}

/* Options Row (Remember Me & Forgot Password) */
.form-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    margin-bottom: 20px;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: #475569;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.remember-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
    cursor: pointer;
    border-radius: 4px;
}

.forgot-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.forgot-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Sign In Button */
.btn-submit-signin {
    width: 100%;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    background: linear-gradient(90deg, #194B78 0%, #2E5C87 100%);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(25, 75, 120, 0.28);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-submit-signin:hover {
    background: linear-gradient(90deg, #1E568A 0%, #346897 100%);
    box-shadow: 0 8px 22px rgba(25, 75, 120, 0.35);
    transform: translateY(-1px);
}

.btn-submit-signin:active {
    transform: translateY(0);
}

.btn-submit-signin:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Decorative Divider Pill */
.login-divider-pill {
    width: 65px;
    height: 3.5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    margin: 16px auto;
}

/* Google Sign In Button */
.btn-google-signin {
    width: 100%;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    background: #18181B;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-google-signin:hover {
    background: #27272A;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.btn-google-signin:active {
    transform: translateY(0);
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN FOR TABLETS & MOBILE DEVICES
------------------------------------------------------------- */
@media (max-width: 860px) {
    .login-main-card {
        grid-template-columns: 1fr;
        max-width: 480px;
        min-height: auto;
        padding: 8px;
        gap: 14px;
    }

    .login-hero-side {
        min-height: 220px;
        padding: 18px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .login-form-side {
        padding: 16px 18px 16px 18px;
    }

    .form-top-badge-container {
        margin-left: -18px;
        margin-top: -4px;
        margin-bottom: 16px;
    }

    .form-heading-area {
        margin-bottom: 16px;
    }

    .form-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .login-page-wrapper {
        padding: 12px;
    }

    .login-main-card {
        border-radius: 12px;
        padding: 8px;
    }

    .login-hero-side {
        border-radius: 8px;
        min-height: 190px;
        padding: 14px;
    }

    .hero-logo-box {
        width: auto;
        height: auto;
        padding: 4px 2px;
    }

    .hero-logo-box img {
        height: 44px;
        max-width: 140px;
        border-radius: 8px;
    }

    .hero-title {
        font-size: 18px;
    }

    .hero-subtitle {
        display: none;
    }

    .login-form-side {
        padding: 14px 12px;
    }

    .form-top-badge-container {
        margin-left: -12px;
        margin-top: -2px;
        margin-bottom: 14px;
    }
}