:root {
    --pkp-primary: #0A243E;
    --pkp-accent: #ECD39A;
    --pkp-light: #f8f4eb;
}

body {
    background-image: url('bg.jpeg');
}

.pkp_structure_content {
    background-color: #FFFFFF !important;
}

.pkp_site_nav_menu {
    background-color: #0A243E !important;
    border-top: 1px solid #ECD39A;
}

@media (min-width: 1200px) {
    .pkp_navigation_primary_wrapper, .pkp_structure_footer {
        width: 1160px !important;
    }
    body > div.pkp_structure_page > div.pkp_structure_footer_wrapper > div > div.pkp_footer_content {
        width: 100% !important;
    }
}

@media (min-width: 992px) {
    .pkp_block {
        padding-bottom: 0 !important;
    }
    body > div.pkp_structure_page > div.pkp_structure_content.has_sidebar > div.pkp_structure_sidebar.left > div.pkp_block.block_make_submission {
        padding: 2.143rem !important;
    }
}

#customblock-sidebar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Sidebar utama - Vertical & Fixed */
.sidebar {
    width: auto;
    height: auto;
    background-color: #720000;
    color: #ffffff;
    overflow-y: hidden;
    /*box-shadow: 4px 0 15px rgba(0, 0, 0, 0.25);*/
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Header sidebar (bisa diganti logo atau judul jurnal) */
.sidebar-header {
    padding: 28px 20px;
    text-align: center;
    color: #ECD39A;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.sidebar-header h2 {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
}

.sidebar-header p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

/* Menu container */
.nav-menu {
    background-color: #0A243E;
    padding: 15px 0;
}

/* Setiap item link */
.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #ECD39A;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid transparent;
    position: relative;
}

/* Efek hover utama */
.nav-link:hover {
    background-color: #9a1a1a;
    border-left: 5px solid #ff4d4d;
    color: #ffffff;
}

/* Efek active / saat diklik */
.nav-link:active {
    background-color: #b22222;
}

/* Ikon panah kecil di sebelah kanan (opsional, bisa dihapus) */
.nav-link::after {
    content: '›';
    margin-left: auto;
    font-size: 1.4rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    opacity: 1;
}

/* Content area (agar tidak tertutup sidebar) */
.main-content {
    margin-left: 280px;
    padding: 40px;
    min-height: 100vh;
}

/* Responsive: pada layar kecil sidebar menjadi top bar atau collapse */
@media (max-width: 992px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .main-content {
        margin-left: 0;
    }
}

/* Scrollbar kustom agar sesuai tema merah */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #ff4d4d;
    border-radius: 20px;
}

/* Sidebar Title */
body > div.pkp_structure_page > div.pkp_structure_content.has_sidebar > div.pkp_structure_sidebar.left > div.pkp_block.block_language > h2,
body > div.pkp_structure_page > div.pkp_structure_content.has_sidebar > div.pkp_structure_sidebar.left > div.pkp_block.block_information > h2 {
    color: #ECD39A;
    padding: 15px;
    background-color: #720000;
    border-bottom: 4px solid #0A243E;
    text-transform: uppercase;
}

/* Button */
.block_make_submission_link, #register > div > button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 22px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px !important;
    text-decoration: none !important;
    text-align: center !important;
    border-radius: 8px !important;
    border: 2px solid #0A243E !important;
    background-color: #0A243E !important;
    color: #ECD39A !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    min-height: 48px !important;
    /*box-shadow: 0 4px 12px rgba(10, 36, 62, 0.25) !important;*/
}

.block_make_submission_link:hover, #register > div > button:hover {
    background-color: #ECD39A !important;
    color: #0A243E !important;
    border-color: #ECD39A !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 0 0 #0A243E !important;
}

/* Register Form */

/* FORM CONTAINER */
form.cmp_form.register {
    /*max-width: 760px;*/
    margin: 0 auto;
    /*padding: 40px 35px;*/
    background: #fff;
    border-radius: 12px;
    /*box-shadow: 0 10px 35px rgba(10, 36, 62, 0.15);*/
}

/* FIELDSET */
form.cmp_form.register fieldset {
    border: 2px solid var(--pkp-primary);
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 30px;
    background: #fff;
}

form.cmp_form.register fieldset:last-of-type {
    margin-bottom: 0;
}

/* LEGEND */
form.cmp_form.register legend {
    font-size: 18px;
    font-weight: 700;
    color: var(--pkp-primary);
    background: #fff;
    padding: 0 14px;
    margin-left: -10px;
}

/* FIELDS GRID (given_name & family_name jadi 2 kolom otomatis) */
form.cmp_form.register .fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* LABEL */
form.cmp_form.register .label {
    display: block;
    font-weight: 600;
    color: var(--pkp-primary);
    margin-bottom: 8px;
    font-size: 14.5px;
    letter-spacing: 0.3px;
}

form.cmp_form.register .required {
    color: #e74c3c;
    margin-left: 2px;
}

/* INPUT, EMAIL, PASSWORD, SELECT */
form.cmp_form.register input[type="text"],
form.cmp_form.register input[type="email"],
form.cmp_form.register input[type="password"],
form.cmp_form.register select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--pkp-primary);
    border-radius: 8px;
    font-size: 15px;
    background-color: #fff;
    color: var(--pkp-primary);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(10, 36, 62, 0.08);
}

/* HOVER */
form.cmp_form.register input:hover:not(:focus),
form.cmp_form.register select:hover:not(:focus) {
    border-color: var(--pkp-accent);
    box-shadow: 0 4px 14px rgba(236, 211, 154, 0.25);
}

/* FOCUS (efek premium) */
form.cmp_form.register input:focus,
form.cmp_form.register select:focus {
    outline: none;
    border-color: var(--pkp-accent);
    box-shadow: 0 0 0 4px rgba(236, 211, 154, 0.35),
                0 6px 18px rgba(10, 36, 62, 0.15);
    background-color: var(--pkp-light);
}

/* CUSTOM SELECT ARROW (negara) */
form.cmp_form.register select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%230A243E' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 6.354a.5.5 0 1 1 .706-.708L8 9.293l4.843-4.647a.5.5 0 0 1 .706.708L8.753 11.14a.5.5 0 0 1-.706 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

form.cmp_form.register select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23ECD39A' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 6.354a.5.5 0 1 1 .706-.708L8 9.293l4.843-4.647a.5.5 0 0 1 .706.708L8.753 11.14a.5.5 0 0 1-.706 0z'/%3E%3C/svg%3E");
}

/* CHECKBOX & OPTIN */
form.cmp_form.register input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--pkp-accent);
    border: 2px solid var(--pkp-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

form.cmp_form.register .optin label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 0;
}

form.cmp_form.register .optin label input {
    margin-top: 3px;
}

/* BUTTONS AREA */
form.cmp_form.register .buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* SUBMIT BUTTON (konsisten dengan tombol sebelumnya) */
form.cmp_form.register button.submit {
    padding: 14px 34px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background-color: var(--pkp-primary);
    color: var(--pkp-accent);
    border: 2px solid var(--pkp-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(10, 36, 62, 0.3);
    min-height: 50px;
}

form.cmp_form.register button.submit:hover {
    background-color: var(--pkp-accent);
    color: var(--pkp-primary);
    border-color: var(--pkp-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(236, 211, 154, 0.4);
}

form.cmp_form.register button.submit:active {
    transform: translateY(1px);
}

/* LINK "LOGIN" (secondary button style) */
form.cmp_form.register .buttons a.login {
    color: var(--pkp-primary);
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

form.cmp_form.register .buttons a.login:hover {
    background-color: var(--pkp-primary);
    color: var(--pkp-accent);
    border-color: var(--pkp-primary);
}

/* RESPONSIVE */
@media (max-width: 640px) {
    form.cmp_form.register {
        padding: 30px 20px;
    }
    form.cmp_form.register fieldset {
        padding: 22px 25px;
    }
    form.cmp_form.register .fields {
        grid-template-columns: 1fr;
    }
}

/* FOCUS VISIBLE (aksesibilitas keyboard) */
form.cmp_form.register input:focus-visible,
form.cmp_form.register select:focus-visible,
form.cmp_form.register button.submit:focus-visible {
    outline: 3px solid rgba(236, 211, 154, 0.6);
    outline-offset: 4px;
}

form.cmp_form.register select {
    height: 32px !important;
    padding-left: 18px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#register > fieldset.identity > div > div.given_name,
#register > fieldset.identity > div > div.family_name,
#register > fieldset.identity > div > div.affiliation,
#register > fieldset.identity > div > div.country,
#register > fieldset.login > div > div.email,
#register > fieldset.login > div > div.username,
#register > fieldset.login > div > div.password, #register > fieldset.consent > div:nth-child(2) > div,
#register > fieldset.consent > div:nth-child(3) > div,
#reviewerOptinGroup {
    padding-bottom: 1rem !important;
}

/* Login Form */
/* FORM CONTAINER */
form.cmp_form.login {
    max-width: 520px;
    /*margin: 0 auto;*/
    padding: 0;
    background: #fff;
    border-radius: 12px;
    /*box-shadow: 0 10px 35px rgba(10, 36, 62, 0.15);*/
}

/* FIELDSET */
form.cmp_form.login fieldset.fields {
    border: 2px solid var(--pkp-primary);
    border-radius: 10px;
    padding: 32px;
    background: #fff;
}

/* LABEL */
form.cmp_form.login .label {
    display: block;
    font-weight: 600;
    color: var(--pkp-primary);
    margin-bottom: 8px;
    font-size: 14.5px;
    letter-spacing: 0.3px;
}

form.cmp_form.login .required {
    color: #e74c3c;
    margin-left: 2px;
}

/* INPUT */
form.cmp_form.login input[type="text"],
form.cmp_form.login input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--pkp-primary);
    border-radius: 8px;
    font-size: 15px;
    background-color: #fff;
    color: var(--pkp-primary);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(10, 36, 62, 0.08);
}

/* HOVER */
form.cmp_form.login input:hover:not(:focus) {
    border-color: var(--pkp-accent);
    box-shadow: 0 4px 14px rgba(236, 211, 154, 0.25);
}

/* FOCUS */
form.cmp_form.login input:focus {
    outline: none;
    border-color: var(--pkp-accent);
    box-shadow: 0 0 0 4px rgba(236, 211, 154, 0.35),
                0 6px 18px rgba(10, 36, 62, 0.15);
    background-color: var(--pkp-light);
}

/* FORGOT PASSWORD LINK (di dalam password field) */
form.cmp_form.login .password a {
    display: block;
    margin-top: 8px;
    color: var(--pkp-primary);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

form.cmp_form.login .password a:hover {
    color: var(--pkp-accent);
    text-decoration: underline;
}

/* CHECKBOX REMEMBER ME */
form.cmp_form.login .remember.checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0;
}

form.cmp_form.login input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--pkp-accent);
    border: 2px solid var(--pkp-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* BUTTONS AREA */
form.cmp_form.login .buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* SUBMIT BUTTON (sama persis dengan Register) */
form.cmp_form.login button.submit {
    padding: 14px 34px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background-color: var(--pkp-primary);
    color: var(--pkp-accent);
    border: 2px solid var(--pkp-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(10, 36, 62, 0.3);
    min-height: 50px;
}

form.cmp_form.login button.submit:hover {
    background-color: var(--pkp-accent);
    color: var(--pkp-primary);
    border-color: var(--pkp-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(236, 211, 154, 0.4);
}

form.cmp_form.login button.submit:active {
    transform: translateY(1px);
}

/* LINK "REGISTER" (secondary button style) */
form.cmp_form.login .buttons a.register {
    color: var(--pkp-primary);
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

form.cmp_form.login .buttons a.register:hover {
    background-color: var(--pkp-primary);
    color: var(--pkp-accent);
    border-color: var(--pkp-primary);
}

/* RESPONSIVE */
@media (max-width: 640px) {
    form.cmp_form.login {
        padding: 30px 20px;
    }
    form.cmp_form.login fieldset.fields {
        padding: 25px;
    }
}

/* FOCUS VISIBLE (aksesibilitas) */
form.cmp_form.login input:focus-visible,
form.cmp_form.login button.submit:focus-visible {
    outline: 3px solid rgba(236, 211, 154, 0.6);
    outline-offset: 4px;
}

/* Content */
body > div.pkp_structure_page > div.pkp_structure_content.has_sidebar > div.pkp_structure_main > div > h2 {
    margin: 0 !important;
}

/* FORM CONTAINER */
form.cmp_form.lost_password {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 35px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(10, 36, 62, 0.15);
}

/* PARAGRAF INSTRUKSI */
.page_lost_password p {
    /*max-width: 480px;
    margin: 0 auto 28px;*/
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--pkp-primary);
    /*text-align: center;
    padding: 0 15px;*/
}

/* FIELDSET / FIELDS */
form.cmp_form.lost_password .fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* LABEL */
form.cmp_form.lost_password .label {
    display: block;
    font-weight: 600;
    color: var(--pkp-primary);
    margin-bottom: 8px;
    font-size: 14.5px;
    letter-spacing: 0.3px;
}

form.cmp_form.lost_password .required {
    color: #e74c3c;
    margin-left: 2px;
}

/* INPUT EMAIL */
form.cmp_form.lost_password input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--pkp-primary);
    border-radius: 8px;
    font-size: 15px;
    background-color: #fff;
    color: var(--pkp-primary);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(10, 36, 62, 0.08);
}

/* HOVER */
form.cmp_form.lost_password input:hover:not(:focus) {
    border-color: var(--pkp-accent);
    box-shadow: 0 4px 14px rgba(236, 211, 154, 0.25);
}

/* FOCUS */
form.cmp_form.lost_password input:focus {
    outline: none;
    border-color: var(--pkp-accent);
    box-shadow: 0 0 0 4px rgba(236, 211, 154, 0.35),
                0 6px 18px rgba(10, 36, 62, 0.15);
    background-color: var(--pkp-light);
}

/* BUTTONS AREA */
form.cmp_form.lost_password .buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* SUBMIT BUTTON (Reset Password) – sama persis dengan Login & Register */
form.cmp_form.lost_password button.submit {
    padding: 14px 34px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background-color: var(--pkp-primary);
    color: var(--pkp-accent);
    border: 2px solid var(--pkp-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(10, 36, 62, 0.3);
    min-height: 50px;
}

form.cmp_form.lost_password button.submit:hover {
    background-color: var(--pkp-accent);
    color: var(--pkp-primary);
    border-color: var(--pkp-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(236, 211, 154, 0.4);
}

form.cmp_form.lost_password button.submit:active {
    transform: translateY(1px);
}

/* LINK "REGISTER" (secondary button) */
form.cmp_form.lost_password .buttons a.register {
    color: var(--pkp-primary);
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

form.cmp_form.lost_password .buttons a.register:hover {
    background-color: var(--pkp-primary);
    color: var(--pkp-accent);
    border-color: var(--pkp-primary);
}

/* RESPONSIVE */
@media (max-width: 640px) {
    form.cmp_form.lost_password {
        padding: 30px 20px;
    }
    .page_lost_password p {
        padding: 0 10px;
    }
}

/* FOCUS VISIBLE (aksesibilitas keyboard) */
form.cmp_form.lost_password input:focus-visible,
form.cmp_form.lost_password button.submit:focus-visible {
    outline: 3px solid rgba(236, 211, 154, 0.6);
    outline-offset: 4px;
}