:root {
    --primary: #1667f2;
    --primary-dark: #0d4fc4;
    --secondary: #063b52;
    --background: #edf3f8;
    --white: #ffffff;
    --text-dark: #101828;
    --text-muted: #667085;
    --border: #d8e0ea;
    --danger: #ef4444;
    --success: #22c55e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text-dark);
    background:
        linear-gradient(
            135deg,
            #edf4fa 0%,
            #f8fbfd 100%
        );
}

button,
input {
    font-family: inherit;
}

.login-page {
    width: 100%;
    min-height: 100vh;
    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-image:
        linear-gradient(
            rgba(238, 248, 252, 0.55),
            rgba(238, 248, 252, 0.55)
        ),
        url('../images/login-background.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    box-sizing: border-box;
}

.login-container {
    width: 100%;
    max-width: 1250px;

    /* Biar content tentukan ketinggian */
    height: auto;
    min-height: 620px;
    max-height: calc(100vh - 40px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 20px 60px rgba(26, 56, 86, 0.15);
}

/* LEFT SIDE */

.login-hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background:
        linear-gradient(
            rgba(247, 251, 255, 0.22),
            rgba(247, 251, 255, 0.08)
        ),
        url("../images/login-hero.jpg") center bottom / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.96) 0%,
            rgba(255, 255, 255, 0.75) 42%,
            rgba(255, 255, 255, 0.08) 72%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 70px 55px 42px;
    display: flex;
    flex-direction: column;
}

.polyconnect-logo{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;          /* Jarak antara logo dan tagline */
    margin-bottom: 30px; /* Jarak ke One Platform */
}

.logo-image{
    width: 260px;
    height: auto;
    display: block;
    margin-bottom: 0;
}

.logo-tagline{
    margin: 0;
    padding: 0;
    color: #1e293b;
    font-size: 100px;
    font-weight: 700;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.logo-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );
    color: var(--white);
    font-size: 30px;
    box-shadow: 0 12px 25px rgba(22, 103, 242, 0.25);
}

.polyconnect-logo h2 {
    margin: 0;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.polyconnect-logo h2::first-letter {
    color: var(--primary);
}

.polyconnect-logo p {
    margin: 4px 0 0;
    color: #52606d;
    font-size: 13px;
}

.hero-heading {
    max-width: 590px;
    margin-top: 60px;
    
}

.hero-heading h1 {
    margin: 0;
    font-size: clamp(40px, 4vw, 60px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.8px;
}

.hero-heading h1 span {
    display: block;
    color: var(--primary);
}

.hero-heading p {
    max-width: 520px;
    margin-top: 22px;
    color: #344054;
    font-size: 18px;
    line-height: 1.7;
}

.hero-features {
    margin-top: auto;
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 15px 35px rgba(13, 56, 90, 0.15);
    backdrop-filter: blur(8px);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 20px;
}

.feature-item h4 {
    margin: 2px 0 5px;
    font-size: 14px;
}

.feature-item p {
    margin: 0;
    color: #475467;
    font-size: 12px;
    line-height: 1.5;
}

/* RIGHT SIDE */

.login-form-section {
    min-height: 720px;
    padding: 65px 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

.login-form-wrapper {
    width: 100%;
    max-width: 560px;
}

.login-lock-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf2ff;
    color: var(--primary);
    font-size: 38px;
    border: 1px solid #cfe0ff;
}

.login-heading {
    margin-bottom: 45px;
    text-align: center;
}

.login-heading h2 {
    margin: 0;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
}

.login-heading p {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 16px;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 11px;
    font-size: 16px;
    font-weight: 700;
}

.input-group-custom {
    position: relative;
}

.input-group-custom > i {
    position: absolute;
    top: 50%;
    left: 19px;
    transform: translateY(-50%);
    color: #667085;
    font-size: 22px;
}

.input-group-custom input {
    width: 100%;
    min-height: 68px;
    padding: 15px 55px 15px 60px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text-dark);
    font-size: 16px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input-group-custom input::placeholder {
    color: #a0a8b5;
}

.input-group-custom input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(22, 103, 242, 0.12);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #667085;
    font-size: 22px;
    cursor: pointer;
}

.forgot-password {
    margin-top: -12px;
    margin-bottom: 25px;
    text-align: right;
}

.forgot-password a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.login-button {
    width: 100%;
    min-height: 68px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        var(--primary),
        #0755db
    );
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(22, 103, 242, 0.27);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.login-button i {
    margin-right: 10px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(22, 103, 242, 0.35);
}

.login-divider {
    margin: 38px 0 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text-muted);
    font-size: 14px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d8dee8;
}

.social-login {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.social-login button {
    min-height: 62px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.social-login button i {
    margin-right: 8px;
    font-size: 21px;
    color: var(--primary);
}

.social-login button:hover {
    border-color: var(--primary);
    background: #f6f9ff;
    transform: translateY(-2px);
}

.register-link {
    margin-top: 45px;
    color: var(--text-muted);
    font-size: 15px;
}

.register-link a {
    margin-left: 5px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* ALERT */

.auth-alert {
    margin-bottom: 25px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.auth-alert-danger {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.auth-alert-success {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .login-container {
        grid-template-columns: 0.9fr 1.1fr;
    }

    .hero-content {
        padding: 55px 38px 35px;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .feature-item:nth-child(2),
    .feature-item:nth-child(3) {
        display: none;
    }

    .login-form-section {
        padding: 55px 45px;
    }
}

@media (max-width: 850px) {
    .login-page {
        padding: 0;
    }

    .login-container {
        min-height: 100vh;
        grid-template-columns: 1fr;
        border-radius: 0;
    }

    .login-hero {
        display: none;
    }

    .login-form-section {
        min-height: 100vh;
        padding: 40px 25px;
    }

    .login-heading h2 {
        font-size: 31px;
    }
}

@media (max-width: 560px) {
    .login-lock-icon {
        width: 72px;
        height: 72px;
        font-size: 31px;
    }

    .login-heading {
        margin-bottom: 35px;
    }

    .input-group-custom input,
    .login-button {
        min-height: 58px;
    }

    .social-login {
        grid-template-columns: 1fr;
    }

    .register-link {
        text-align: center;
    }

    /* =====================================================
    LOGIN - DESKTOP 100% COMPACT
    ===================================================== */

    @media (min-width: 992px) {

        .login-page {
            min-height: 100vh;
            padding: 16px;
        }

        .login-container {
            width: 100%;
            max-width: 1250px;
            height: calc(100vh - 32px);
            max-height: 720px;
            min-height: 600px;
        }

        /* LEFT SIDE */
        .login-hero {
            min-height: 0;
        }

        .hero-content {
            padding: 35px 45px 25px;
        }

        .brand-logo {
            max-width: 260px;
        }

        .hero-heading h1 {
            font-size: clamp(42px, 3.5vw, 58px);
            line-height: 1.05;
            margin-bottom: 18px;
        }

        .hero-heading p {
            font-size: 15px;
            line-height: 1.5;
            margin-bottom: 18px;
        }

        .hero-features {
            margin-top: 15px;
            padding: 16px 18px;
        }

        .feature-item {
            gap: 10px;
        }

        .feature-icon {
            width: 42px;
            height: 42px;
            min-width: 42px;
        }

        .feature-item h4 {
            font-size: 13px;
            margin-bottom: 2px;
        }

        .feature-item p {
            font-size: 10px;
            line-height: 1.3;
        }


        /* RIGHT SIDE */
        .login-form-section {
            padding: 35px 55px;
        }

        .login-icon {
            width: 70px;
            height: 70px;
            margin-bottom: 18px;
        }

        .login-heading {
            margin-bottom: 28px;
        }

        .login-heading h2 {
            font-size: 34px;
            margin-bottom: 8px;
        }

        .login-heading p {
            font-size: 14px;
        }

        .form-label {
            margin-bottom: 7px;
            font-size: 13px;
        }

        .form-control {
            min-height: 55px;
            height: 55px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .forgot-password {
            margin-top: 8px;
            margin-bottom: 18px;
        }

        .login-button {
            min-height: 55px;
            height: 55px;
        }
    }
    
}