﻿body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
}

/* === MAIN LAYOUT === */
.login-wrapper {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
}

/* BAGIAN KIRI (BRAND) - 60% */
.brand-section {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f3f4f6;
    padding: 2rem;
    position: relative;
    box-sizing: border-box;
}

/* Ilustrasi SVG di brand-logo-hero */
.brand-logo-hero {
    width: 80%;
    height: 80%;
    max-width: 600px;
    background-image: url('../img/brand_left.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 2;
}

/* BAGIAN KANAN (FORM) - 40% */
.form-section {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 2rem;
    box-sizing: border-box;
    box-shadow: -4px 0 15px rgba(0,0,0,0.03);
}

.form-container {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* === TYPOGRAPHY === */
.header-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.header-text p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

/* === FORM STYLING === */
.form-group {
    margin-bottom: 0.875rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #374151;
}

.input-wrapper {
    position: relative;
}

.modern-input {
    width: 100%;
    height: 38px;
    padding: 0 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    outline: none;
    color: #1f2937;
    background-color: #f9fafb;
}

    .modern-input:focus {
        background-color: #fff;
        border-color: #005AAB;
        box-shadow: 0 0 0 3px rgba(0, 90, 171, 0.1);
    }

.btn-modern {
    width: 100%;
    height: 40px;
    background-color: #005AAB;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 90, 171, 0.2);
}

    .btn-modern:hover {
        background-color: #004080;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 90, 171, 0.35);
    }

    .btn-modern:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0, 90, 171, 0.2);
    }

.toggle-password {
    position: absolute;
    right: 10px;
    top: 40%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.85rem;
}

    .toggle-password:hover {
        color: #6b7280;
    }

/*.fa {
    padding-top: 14px;
}*/

.error-msg {
    display: block;
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
    min-height: 16px;
}

.modern-input.is-invalid {
    border-color: #dc3545;
}

.modern-input.is-valid {
    border-color: #28a745;
}

.strength-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.4s ease, background 0.4s ease;
}

.strength-label {
    font-size: 12px;
    font-weight: 600;
    min-width: 60px;
}

.pwd-checklist {
    list-style: none;
    padding: 8px 0 0 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}

    .pwd-checklist li {
        font-size: 12px;
        color: #adb5bd;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: color 0.2s;
    }

        .pwd-checklist li.pass {
            color: #28a745;
        }

        .pwd-checklist li.fail {
            color: #dc3545;
        }

        .pwd-checklist li i {
            font-size: 8px;
        }

        .pwd-checklist li.pass i::before {
            content: "\f058";
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            font-size: 12px;
        }

        .pwd-checklist li.fail i::before {
            content: "\f057";
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            font-size: 12px;
        }

        .pwd-checklist li:not(.pass):not(.fail) i::before {
            content: "\f111";
            font-family: "Font Awesome 5 Free";
            font-weight: 400;
            font-size: 8px;
        }
