/* Bukit Piniapat – login page styles (ported verbatim from user login.html) */
:root {
    --forest-green: #184022;
    --deep-forest: #14361D;
    --emerald: #0FA958;
    --sunset-gold: #C06B00;
    --accent-gold: #D4AF37;
    --btn-gold: #D8B26E;
    --btn-gold-hover: #C59F5A;
    --sky-white: #FFFFFF;
    --soft-ecru: #F4F6F2;
    --charcoal: #2C3333;
    --muted-text: #8E9893;
    --border-light: #E2E6E1;
    --card-radius: 14px;
    --input-radius: 10px;
    --transition: all 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background: #1B2E23;
    color: var(--charcoal);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* Container Layout */
.portal-wrapper {
    width: 100%;
    max-width: 1220px;
    background: var(--sky-white);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 460px 1fr;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

/* ================= LEFT AUTH PANEL ================= */
.auth-panel {
    background: radial-gradient(circle at 80% 20%, #1A4D2E 0%, #133921 55%, #0D2616 100%);
    padding: 40px 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--sky-white);
    position: relative;
}

.auth-header {
    text-align: center;
    margin-bottom: 26px;
}

.auth-logo-badge {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--sky-white);
    margin: 0 auto 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.auth-logo-badge svg {
    width: 36px;
    height: 22px;
}

.auth-logo-badge span {
    font-family: 'Montserrat', sans-serif;
    font-size: 7.5px;
    font-weight: 800;
    color: #14361D;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.auth-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #E2ECE5;
    line-height: 1.3;
}

.auth-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--btn-gold);
    margin-top: 2px;
}

.auth-header p {
    font-size: 0.8rem;
    color: #9AB3A2;
    margin-top: 2px;
}

/* Segmented Tabs */
.tab-switcher {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 22px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #C3D4C8;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 0;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--btn-gold);
    color: #1B291F;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Form Inputs */
.auth-form {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.auth-form.active {
    display: flex;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #D3E2D8;
}

.input-box {
    position: relative;
}

.input-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--input-radius);
    padding: 12px 14px;
    font-size: 0.88rem;
    color: var(--sky-white);
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition);
}

.input-box input::placeholder {
    color: #7A9583;
    font-size: 0.82rem;
}

.input-box input:focus {
    border-color: var(--btn-gold);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 0 0 3px rgba(216, 178, 110, 0.2);
}

.input-box .toggle-pwd {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8CA795;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
}

.auth-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #BDD0C3;
    margin-top: 2px;
}

.auth-meta label {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.auth-meta a {
    color: #D8B26E;
    text-decoration: none;
}

.auth-meta a:hover {
    text-decoration: underline;
}

.submit-btn {
    background: var(--btn-gold);
    color: #172B1E;
    border: none;
    border-radius: var(--input-radius);
    padding: 13px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 6px;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--btn-gold-hover);
    transform: translateY(-1px);
}

.auth-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 0.72rem;
    color: #728D7B;
    line-height: 1.5;
}

/* ================= RIGHT FEED PANEL ================= */
.info-panel {
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-content {
    padding: 30px 36px 20px;
}

.info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1B291F;
    margin-bottom: 14px;
}

/* Category Filter Chips */
.chips-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.chip-btn {
    background: #F1F4F1;
    color: #556259;
    border: 1px solid var(--border-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.chip-btn.active {
    background: var(--emerald);
    color: var(--sky-white);
    border-color: var(--emerald);
}

/* Status Ticker */
.status-strip {
    background: #0FA958;
    color: var(--sky-white);
    border-radius: 8px;
    padding: 9px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.status-strip .left-stat {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #80FFBC;
    border-radius: 50%;
    box-shadow: 0 0 6px #80FFBC;
}

/* News Feed Cards */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card {
    border: 1px solid var(--border-light);
    border-radius: var(--card-radius);
    padding: 16px 20px;
    background: #FAFCFA;
    transition: var(--transition);
}

.news-card:hover {
    border-color: #B9D4C0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transform: translateY(-1px);
}

.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.news-source {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #5F6E65;
}

.source-circle {
    width: 13px;
    height: 13px;
    border: 2px solid #5F6E65;
    border-radius: 50%;
}

.news-tag {
    background: #E8F7ED;
    color: #0FA958;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.news-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1A281E;
    margin-bottom: 6px;
}

.news-card p {
    font-size: 0.8rem;
    color: #55665C;
    line-height: 1.45;
    margin-bottom: 10px;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    color: #8C9991;
    font-weight: 500;
}

.news-card-footer a {
    color: #1A3D24;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-card-footer a:hover {
    color: var(--sunset-gold);
}

/* Emergency Contacts Footer */
.emergency-strip {
    border-top: 1px solid var(--border-light);
    background: #FDFEFC;
    padding: 16px 36px 20px;
}

.emergency-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #728277;
    margin-bottom: 10px;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 18px;
    font-size: 0.74rem;
    color: #39473E;
}

.em-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.em-item i {
    color: #1F452A;
    font-size: 0.8rem;
    width: 14px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .portal-wrapper {
        grid-template-columns: 1fr;
        max-width: 620px;
    }
    .emergency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    body { padding: 10px; }
    .auth-panel, .info-content, .emergency-strip { padding: 24px 20px; }
    .status-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .emergency-grid {
        grid-template-columns: 1fr;
    }
}
    

/* ---- Added for WordPress integration ---- */
.auth-msg { display: none; padding: 10px 12px; border-radius: var(--input-radius); font-size: 0.8rem; line-height: 1.4; }
.auth-msg.is-error { background: rgba(220, 53, 69, 0.2); color: #ffd3d7; border: 1px solid rgba(220, 53, 69, 0.45); }
.auth-msg.is-success { background: rgba(15, 169, 88, 0.2); color: #c8f5dc; border: 1px solid rgba(15, 169, 88, 0.45); }
.submit-btn:disabled { opacity: 0.7; cursor: wait; transform: none; }

/* ---- Registration closed: staff note shown in the Daftar tab ---- */
.auth-note { text-align: center; align-items: center; padding: 8px 4px 4px; }
.auth-note-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(216, 178, 110, 0.15); color: var(--btn-gold); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 4px; }
.auth-note h3 { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 800; color: #E2ECE5; }
.auth-note p { font-size: 0.84rem; color: #BDD0C3; line-height: 1.55; }
.auth-note .auth-note-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; width: 100%; }
.auth-note .auth-note-small { font-size: 0.74rem; color: #8CA795; }

/* ============================================================
   RESPONSIVE REFINEMENTS (layout audit, Oct 2026)
   ============================================================ */
/* 16px inputs stop iOS from zooming the page on focus; 48px height for touch. */
.input-box input { font-size: 16px; min-height: 48px; padding-right: 48px; }
.input-box .toggle-pwd { width: 44px; height: 44px; right: 2px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.auth-meta { flex-wrap: wrap; gap: 8px 16px; }
.auth-meta label { min-height: 40px; }
.auth-meta input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--btn-gold); }
.auth-meta a { display: inline-flex; align-items: center; min-height: 40px; }
.tab-btn { min-height: 44px; }
.submit-btn { min-height: 50px; }
.chips-row { flex-wrap: wrap; }
.chip-btn { min-height: 36px; padding: 6px 16px; }
.news-card-footer a { min-height: 36px; }
.news-tag { font-size: 0.72rem; }
.auth-footer { font-size: 0.75rem; }
.status-strip .left-stat { flex-wrap: wrap; gap: 6px 16px; }

/* Tablet: single column, keep it from stretching edge to edge. */
@media (max-width: 992px) { .portal-wrapper { max-width: 640px; } }
/* Phones: one consistent 20px gutter inside both panels. */
@media (max-width: 540px) {
    body { padding: 0; align-items: stretch; }
    .portal-wrapper { border-radius: 0; box-shadow: none; }
    .auth-panel, .info-content, .emergency-strip { padding-left: 20px; padding-right: 20px; }
    .auth-panel { padding-top: 32px; }
    .em-item { white-space: normal; }
}
/* Minimum 12px for supporting text. */
.news-tag { font-size: 0.75rem; }
.news-card-footer, .news-card-footer a { font-size: 0.78rem; }
.emergency-title { font-size: 0.75rem; }
.emergency-grid { font-size: 0.8rem; }

/* ==================== BRAND LOGO ==================== */
.auth-logo-badge.has-logo { width: 112px; height: 112px; padding: 0; }
.auth-logo-badge.has-logo img { width: 88px; height: auto; display: block; }
@media (max-width: 600px) {
    .auth-logo-badge.has-logo { width: 96px; height: 96px; }
    .auth-logo-badge.has-logo img { width: 76px; }
}

/* ==================== STAFF GUIDE (replaces the news feed) ==================== */
.portal-guide { margin-top: 6px; }
.portal-guide h3 { font-family: 'Montserrat', sans-serif; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: #728277; margin-bottom: 12px; }
.portal-guide-list { list-style: none; display: grid; gap: 12px; }
.portal-guide-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--border-light); border-radius: 12px; background: #FBFCFA; }
.portal-guide-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #E8F2EB; color: #1F452A; font-size: 1rem; }
.portal-guide-list strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 0.92rem; color: #1B291F; margin-bottom: 2px; }
.portal-guide-list span { font-size: 0.82rem; color: #5A6A5F; line-height: 1.5; }
