/*
=========================================================
SKILLS Journal — Custom Theme Enhancements   
========================================================= 
*/

/* ---------- Sidebar pill buttons (Policies, Submission, ISSN, View My Stats) ---------- */
.sd-link {
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.sd-link:hover {
    background-color: #1B4F8A !important;
    color: #FFFFFF !important;
    border-color: #1B4F8A !important;
    transform: translateY(-1px);
}

/* ---------- Index By / Tools Recommendation — Apple-style tiles ---------- */
.apl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 14px;
}

.apl-tile {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
    background-color: #FFFFFF;
    border: 0.5px solid #E3E9F2;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(13, 52, 100, 0.05), 0 4px 12px rgba(13, 52, 100, 0.04);
    opacity: 0;
    transform: translateY(12px);
    animation: aplFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.7s ease;
    transition-delay: 0.08s;
}

.apl-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.08s;
}

.apl-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 3px 6px rgba(13, 52, 100, 0.05), 0 16px 32px rgba(13, 52, 100, 0.11);
    border-color: #D9E3F0;
}

.apl-tile:hover img {
    transform: scale(1.045);
}

@keyframes aplFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .apl-tile {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .apl-tile,
    .apl-tile img,
    .sd-link {
        transition: none;
    }
}

/* ---------- Footer bawaan tema (OJS/PKP) ---------- */
.pkp_structure_footer_wrapper {
    background-color: #16273F;
    border-top: 3px solid #E8D8B4;
}

.pkp_structure_footer {
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.pkp_footer_content {
    flex: 1 1 320px;
}

.pkp_footer_content p {
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 13.5px;
    line-height: 1.85;
    color: #C7D6EC;
    margin: 0;
}

.pkp_footer_content strong {
    color: #E8D8B4;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pkp_brand_footer {
    flex: 0 0 auto;
}

.pkp_brand_footer img {
    opacity: 0.7;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.pkp_brand_footer img:hover {
    opacity: 1;
}

@media (max-width: 640px) {
    .pkp_structure_footer {
        padding: 26px 20px;
        justify-content: center;
        text-align: center;
    }

    .pkp_footer_content {
        flex-basis: 100%;
    }
}

.pkp_page_index .current_issue {
    display: none;
}

.pkp_page_index .pkp_structure_main:before,
.pkp_page_index .pkp_structure_main:after {
    display: none;
}

/* .pkp_page_index .pkp_structure_head,
.pkp_page_index .pkp_head_wrapper,
.pkp_page_index .pkp_navigation_primary_row {
    border-bottom: none !important;
    box-shadow: none !important;
} */

.pkp_page_index .additional_content {
    border-top: none;
}


/* ============================================
   LOGIN & RESET PASSWORD — Cobalt & Champagne
   Tambahkan di: Settings → Website → Appearance → Custom CSS
   ============================================ */

.page_login,
.page_lost_password {
    margin: 29px auto;
    padding: 2.413rem;
    background: #FFFFFF;
    border: 1px solid #D9E3F0;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(27, 79, 138, 0.08);
}

/* Batasi lebar konten form supaya proporsional, tidak stretch penuh ke lebar card */
.page_login .cmp_breadcrumbs,
.page_login h1,
.page_login>p,
.page_login .cmp_form.login,
.page_lost_password .cmp_breadcrumbs,
.page_lost_password h1,
.page_lost_password>p,
.page_lost_password .cmp_form {
    max-width: 560px !important;
}

/* Breadcrumb */
.page_login .cmp_breadcrumbs,
.page_lost_password .cmp_breadcrumbs {
    margin-bottom: 20px;
}

.page_login .cmp_breadcrumbs a,
.page_lost_password .cmp_breadcrumbs a {
    color: #5A7BA8;
    text-decoration: none;
    font-size: 13px;
}

.page_login .cmp_breadcrumbs a:hover,
.page_lost_password .cmp_breadcrumbs a:hover {
    color: #1B4F8A;
}

.page_login .cmp_breadcrumbs .current span,
.page_lost_password .cmp_breadcrumbs .current span {
    color: #16273F;
    font-size: 13px;
}

.page_login .cmp_breadcrumbs .separator,
.page_lost_password .cmp_breadcrumbs .separator {
    color: #D9E3F0;
    margin: 0 6px;
}

/* Heading */
.page_login h1,
.page_lost_password h1 {
    color: #16273F;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    border: none;
    padding: 0;
}

.page_login>p,
.page_lost_password>p {
    color: #5A7BA8;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.page_login abbr.required,
.page_lost_password abbr.required {
    color: #1B4F8A;
    text-decoration: none;
}

/* Form fields */
.page_login .cmp_form .fields>div,
.page_lost_password .cmp_form .fields>div {
    position: relative;
    padding-bottom: 1rem !important;
    margin-bottom: 1rem !important;
}

.page_login .cmp_form.login .username,
.page_login .cmp_form.login .password,
.page_lost_password .cmp_form .email {
    max-width: 560px;
}

.page_login .cmp_form label,
.page_lost_password .cmp_form label {
    display: block;
    width: 100%;
}

.page_login .cmp_form label .label,
.page_lost_password .cmp_form label .label {
    display: block;
    color: #16273F;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px !important;
}

.page_login .cmp_form .required,
.page_lost_password .cmp_form .required {
    color: #1B4F8A;
}

.page_login .cmp_form input[type="text"],
.page_login .cmp_form input[type="password"],
.page_login .cmp_form input[type="email"],
.page_lost_password .cmp_form input[type="text"],
.page_lost_password .cmp_form input[type="email"] {
    display: block;
    width: 100% !important;
    max-width: 560px;
    box-sizing: border-box;
    padding: .375rem .75rem;
    height: auto;
    line-height: 1.5;
    border: 1px solid #D9E3F0;
    border-radius: 8px;
    background: #F0F4FA;
    color: #16273F;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.page_login .cmp_form input[type="text"]:focus,
.page_login .cmp_form input[type="password"]:focus,
.page_login .cmp_form input[type="email"]:focus,
.page_lost_password .cmp_form input[type="text"]:focus,
.page_lost_password .cmp_form input[type="email"]:focus {
    outline: none;
    border-color: #1B4F8A;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(27, 79, 138, 0.12);
}

/* "Forgot your password?" link (login only) */
.page_login .cmp_form.login .password label a {
    display: inline-block;
    margin-top: 8px !important;
    color: #1B4F8A;
    font-size: 12.5px;
    text-decoration: none;
}

.page_login .cmp_form.login .password label a:hover {
    color: #16273F;
    text-decoration: underline;
}

/* Remember me checkbox (login only) */
.page_login .cmp_form.login .remember.checkbox {
    margin-top: 4px !important;
    margin-bottom: 16px !important;
}

.page_login .cmp_form.login .remember.checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.page_login .cmp_form.login .remember.checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1B4F8A;
    cursor: pointer;
}

.page_login .cmp_form.login .remember.checkbox .label {
    color: #5A7BA8;
    font-size: 13px;
}

/* Submit button */
.page_login .cmp_form .buttons,
.page_lost_password .cmp_form .buttons {
    margin-top: 4px;
    max-width: 560px;
}

.page_login .cmp_form .buttons .submit,
.page_lost_password .cmp_form .buttons .submit {
    float: left;
    width: auto !important;
    padding: 8px 32px;
    background: #1B4F8A;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.page_login .cmp_form .buttons .submit:hover,
.page_lost_password .cmp_form .buttons .submit:hover {
    background: #16273F;
    transform: translateY(-1px);
}

/* --- Alert error (login & reset password) --- */
.page_login .pkp_form_error,
.page_login .cmp_form .error,
.page_login div.error,
.page_login .pkp_notification.error,
.page_lost_password .pkp_form_error,
.page_lost_password .cmp_form .error,
.page_lost_password div.error,
.page_lost_password .pkp_notification.error {
    max-width: 560px;
    background: #FDECEC !important;
    color: #A3261F !important;
    border: 1px solid #F3BDBD !important;
    border-left: 4px solid #D64545 !important;
    border-radius: 8px !important;
    padding: 13px 16px 13px 44px !important;
    margin-bottom: 24px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.5;
    position: relative;
}

.page_login .pkp_form_error::before,
.page_login .cmp_form .error::before,
.page_login div.error::before,
.page_login .pkp_notification.error::before,
.page_lost_password .pkp_form_error::before,
.page_lost_password .cmp_form .error::before,
.page_lost_password div.error::before,
.page_lost_password .pkp_notification.error::before {
    content: '!';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: #D64545;
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* Mobile */
@media (max-width: 480px) {

    .page_login,
    .page_lost_password {
        margin: 10px;
        padding: 2.143rem 1.43rem;
    }
}

.pkp_page_login .pkp_structure_main:before,
.pkp_page_login .pkp_structure_main:after {
    display: none;
}

/* Hilangkan logo footer */
.pkp_brand_footer {
    display: none;
}