/*
 * BuddyX Child — Dictio.id
 * dictio-login.css
 *
 * Hanya di-load di halaman /login/ (via dictio-login.php).
 */

/* ── Wrapper halaman ────────────────────────────────────────── */
.page-template-default.page-id-login #buddypress,
body.page-slug-login .entry-content,
.page-slug-login .entry-content {
    max-width: 900px;
    margin: 48px auto;
    padding: 0 16px;
}

/* ── Layout grid kiri / kanan ───────────────────────────────── */
.dictio-login-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
    overflow: hidden;
    border: 0.5px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    background: #fff;
}

/* ════════════════════════════════════════════════════════════
 * PANEL KIRI — Branding
 * ════════════════════════════════════════════════════════════ */
.dictio-login-left {
    background: #0d1f35;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 520px;
}

.dictio-login-left::before {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: #c8963a;
    opacity: 0.07;
    pointer-events: none;
}

.dictio-login-left::after {
    content: '';
    position: absolute;
    top: -40px; left: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: #4f8ef7;
    opacity: 0.06;
    pointer-events: none;
}

.dl-logo {
    height: 32px;
    width: auto;
    max-width: 140px;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.dl-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 0 28px;
    position: relative;
    z-index: 2;
}

.dl-tagline {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c8963a;
    margin: 0 0 12px 0;
}

.dl-headline {
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.45;
    margin: 0 0 24px 0;
    padding: 0;
    border: none;
}

.dl-quote {
    border-left: 2px solid rgba(200, 150, 58, 0.4) !important;
    padding-left: 16px !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.dl-quote::before,
.dl-quote::after {
    display: none !important;
    content: none !important;
}

.dl-quote p {
    font-size: 13px !important;
    color: #6b8fad !important;
    line-height: 1.75 !important;
    font-style: italic !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

.dl-emas {
    color: #c8963a !important;
    font-style: italic !important;
}

.dl-quote cite {
    font-size: 11px !important;
    color: #3d6080 !important;
    font-style: normal !important;
}

.dl-footer {
    position: relative;
    z-index: 2;
    border-top: 0.5px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
}

.dl-footer p {
    font-size: 11px;
    color: #2e4a62;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════
 * PANEL KANAN — Form
 * ════════════════════════════════════════════════════════════ */
.dictio-login-right {
    background: #ffffff;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dl-form-header {
    margin-bottom: 28px;
}

.dl-form-header h3 {
    font-size: 20px;
    font-weight: 500;
    color: #0d1f35;
    margin: 0 0 5px 0;
    padding: 0;
    border: none;
}

.dl-form-header p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Error message */
.dl-error {
    font-size: 13px;
    color: #dc2626;
    background: #fef2f2;
    border: 0.5px solid #fecaca;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

/* ── Honeypot — wajib tersembunyi ───────────────────────────── */
.dl-hp-field {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ── Field group ────────────────────────────────────────────── */
.dl-field-group {
    margin-bottom: 14px;
}

.dl-field-group label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 6px 0;
}

.dl-field-group input[type="text"],
.dl-field-group input[type="email"],
.dl-field-group input[type="password"] {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 0.5px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.dl-field-group input[type="text"]::placeholder,
.dl-field-group input[type="email"]::placeholder,
.dl-field-group input[type="password"]::placeholder {
    font-size: 12px;
    color: #b0bec5;
}

.dl-field-group input:focus {
    border-color: #c8963a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(200, 150, 58, 0.1);
}

/* Password wrapper */
.dl-pass-wrap {
    position: relative;
}

.dl-pass-wrap input[type="password"],
.dl-pass-wrap input[type="text"] {
    padding-right: 40px;
}

.dl-pass-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0;
    display: flex;
    align-items: center;
}

.dl-pass-toggle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Remember + lupa password */
.dl-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 20px;
}

.dl-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
}

.dl-remember input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #c8963a;
    cursor: pointer;
}

.dl-forgot {
    font-size: 13px;
    color: #c8963a;
    text-decoration: none;
    font-weight: 500;
}

.dl-forgot:hover {
    text-decoration: underline;
}

/* ── Tombol login ───────────────────────────────────────────── */
.dl-btn-login {
    width: 100% !important;
    height: 42px !important;
    background: #0d1f35 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    letter-spacing: 0.01em !important;
    transition: background 0.15s !important;
}

.dl-btn-login:hover {
    background: #152c47 !important;
}

/* ── Footer form ────────────────────────────────────────────── */
.dl-form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 0.5px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
}

.dl-form-footer a {
    color: #c8963a;
    text-decoration: none;
    font-weight: 500;
}

.dl-form-footer a:hover {
    text-decoration: underline;
}

.dl-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
    font-size: 12px;
    color: #94a3b8;
    text-decoration: none;
}

.dl-back-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.dl-back-link:hover {
    color: #64748b;
}

/* ── Responsive mobile ──────────────────────────────────────── */
@media (max-width: 680px) {
    .dictio-login-wrap {
        grid-template-columns: 1fr;
        border-radius: 12px;
    }

    .dictio-login-left {
        min-height: auto;
        padding: 28px 24px;
        order: 2;
    }

    .dictio-login-right {
        padding: 28px 24px;
        order: 1;
    }

    .dl-headline {
        font-size: 17px;
    }
}
