* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #f1f5f9;

    color: #1e293b;
}


.login-page {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;
}


.login-card {

    width: 100%;

    max-width: 430px;

    background: #ffffff;

    border-radius: 16px;

    padding: 42px 42px 32px;

    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.10);

    border: 1px solid #e2e8f0;
}




.login-card h1 {

    margin: 0;

    text-align: center;

    font-size: 30px;

    font-weight: 700;

    color: #0f172a;
}


.login-subtitle {

    text-align: center;

    margin: 8px 0 32px;

    color: #64748b;

    font-size: 14px;

    line-height: 1.5;
}


.form-group {

    margin-bottom: 20px;
}


.form-group label {

    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 600;

    color: #334155;
}


.input-wrapper {

    position: relative;

    display: flex;

    align-items: center;
}


.input-icon {

    position: absolute;

    left: 14px;

    top: 50%;

    transform: translateY(-50%);

    color: #94a3b8;

    display: flex;

    align-items: center;

    pointer-events: none;
}


.input-wrapper input {

    width: 100%;

    height: 48px;

    padding:
        0 46px
        0 44px;

    border: 1px solid #cbd5e1;

    border-radius: 9px;

    outline: none;

    font-size: 14px;

    color: #0f172a;

    background: #ffffff;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.input-wrapper input::placeholder {

    color: #94a3b8;
}


.input-wrapper input:focus {

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(
            37,
            99,
            235,
            0.12
        );
}


.password-toggle {

    position: absolute;

    right: 10px;

    top: 50%;

    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    background: transparent;

    color: #64748b;

    cursor: pointer;

    border-radius: 6px;
}


.password-toggle:hover {

    background: #f1f5f9;

    color: #334155;
}


.login-button {

    width: 100%;

    height: 48px;

    margin-top: 6px;

    border: none;

    border-radius: 9px;

    background: #1d4ed8;

    color: #ffffff;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    transition:
        background-color 0.2s ease,
        transform 0.1s ease;
}


.login-button:hover {

    background: #1e40af;
}


.login-button:active {

    transform: translateY(1px);
}


.login-error {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    padding: 11px 13px;

    margin-bottom: 18px;

    border-radius: 8px;

    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #b91c1c;

    font-size: 13px;

    line-height: 1.45;
}


.login-footer {

    margin-top: 28px;

    padding-top: 20px;

    border-top: 1px solid #e2e8f0;

    text-align: center;

    font-size: 11px;

    color: #94a3b8;
}


@media (max-width: 520px) {

    .login-page {

        padding: 18px;
    }

    .login-card {

        padding: 32px 24px 26px;

        border-radius: 14px;
    }

}


/* ============================================================
   LOGIN LOGO
============================================================ */

.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 18px;
}

/* Logo dari components/logo.html */
.login-logo .logo-icon {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    /* Biru seperti logo di landing page */
    background: #2563eb;

    /* Ikon putih */
    color: #ffffff;

    flex-shrink: 0;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.20);
}


/* SVG di dalam logo */

.login-logo .logo-icon svg {
    width: 30px;
    height: 30px;

    display: block;

    color: #ffffff;

    stroke: currentColor;
}

.login-card h1 {

    margin: 0;

    text-align: center;

    font-size: 30px;

    font-weight: 800;

    color: #0f172a;
}


/* Biblio = regular, Ref = bold */
.login-card h1 .brand-regular {
    font-weight: 400;
}



