* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

:root {
    --primary: #0f5132;
    --primary-hover: #198754;
    --primary-soft: #eaf6ef;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border: #dfe5e1;
    --background: #f4f7f5;
    --white: #ffffff;
    --danger: #b42318;
    --danger-bg: #fff0ee;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    padding: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at top left,
            rgba(25, 135, 84, 0.14),
            transparent 32%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(15, 81, 50, 0.12),
            transparent 30%
        ),
        var(--background);

    color: var(--text-dark);
}

.container {
    width: 100%;
    max-width: 1080px;

    display: flex;
    align-items: stretch;

    background: var(--white);
    border: 1px solid rgba(15, 81, 50, 0.08);
    border-radius: 28px;

    overflow: hidden;

    box-shadow:
        0 24px 60px rgba(31, 41, 55, 0.12);
}

.container::before {
    content: "";

    flex: 1;

    min-height: 620px;

    background:
        linear-gradient(
            rgba(15, 81, 50, 0.82),
            rgba(15, 81, 50, 0.92)
        ),
        radial-gradient(
            circle at 25% 20%,
            rgba(255, 255, 255, 0.16),
            transparent 28%
        );

    position: relative;
}

.login-box {
    width: 470px;
    min-height: 620px;

    padding: 64px 52px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: var(--white);
}

.login-box::before {
    content: "KBN";

    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin: 0 auto 22px;

    color: var(--white);
    background: var(--primary);

    border-radius: 16px;

    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;

    box-shadow:
        0 12px 25px rgba(15, 81, 50, 0.22);
}

h1 {
    margin-bottom: 10px;

    color: var(--primary);

    text-align: center;
    font-size: 30px;
    line-height: 1.2;
}

p {
    margin-bottom: 32px;

    color: var(--text-muted);

    text-align: center;
    font-size: 15px;
    line-height: 1.7;
}

form {
    width: 100%;
}

label {
    display: block;

    margin-bottom: 8px;

    color: var(--text-dark);

    font-size: 14px;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 50px;

    margin-bottom: 17px;
    padding: 0 15px;

    color: var(--text-dark);
    background: #fbfcfb;

    border: 1px solid var(--border);
    border-radius: 12px;

    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

input::placeholder {
    color: #a0a7a3;
}

input:focus {
    outline: none;

    background: var(--white);
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(15, 81, 50, 0.1);
}

button {
    width: 100%;
    min-height: 50px;

    margin-top: 5px;
    padding: 0 18px;

    color: var(--white);
    background: var(--primary);

    border: none;
    border-radius: 12px;

    cursor: pointer;

    font-size: 16px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

button:hover {
    background: var(--primary-hover);

    transform: translateY(-1px);

    box-shadow:
        0 12px 24px rgba(15, 81, 50, 0.2);
}

button:active {
    transform: translateY(0);
}

.error {
    margin-bottom: 18px;
    padding: 13px 15px;

    color: var(--danger);
    background: var(--danger-bg);

    border: 1px solid rgba(180, 35, 24, 0.16);
    border-radius: 12px;

    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

/* TABLET */

@media screen and (max-width: 900px) {
    body {
        padding: 20px;
    }

    .container {
        max-width: 520px;
    }

    .container::before {
        display: none;
    }

    .login-box {
        width: 100%;
        min-height: auto;
        padding: 50px 42px;
    }
}

/* MOBILE */

@media screen and (max-width: 560px) {
    body {
        min-height: 100dvh;
        padding: 14px;

        align-items: center;
    }

    .container {
        width: 100%;
        border-radius: 22px;
    }

    .login-box {
        width: 100%;
        padding: 36px 22px;
    }

    .login-box::before {
        width: 52px;
        height: 52px;

        margin-bottom: 18px;

        border-radius: 14px;
        font-size: 16px;
    }

    h1 {
        font-size: 26px;
    }

    p {
        margin-bottom: 26px;
        font-size: 14px;
    }

    input {
        min-height: 48px;
        font-size: 16px;
    }

    button {
        min-height: 48px;
        font-size: 15px;
    }
}

/* HP KECIL */

@media screen and (max-width: 380px) {
    body {
        padding: 10px;
    }

    .login-box {
        padding: 30px 17px;
    }

    h1 {
        font-size: 23px;
    }
}