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

/* ── Wrapper halaman ────────────────────────────────────────── */
.register-page #buddypress,
body.register #buddypress {
    max-width: 920px;
    margin: 48px auto;
    padding: 0 16px;
}

/* Sembunyikan pesan info default BP */
.register-page .bp-feedback.info {
    display: none;
}

/* ── Layout grid kiri / kanan ───────────────────────────────── */
#register-page .layout-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
 * ════════════════════════════════════════════════════════════ */
#register-page #basic-details-section {
    background: #0d1f35;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 560px;
}

/* Dekorasi lingkaran latar */
#register-page #basic-details-section::before {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: #c8963a;
    opacity: 0.07;
    pointer-events: none;
}
#register-page #basic-details-section::after {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #4f8ef7;
    opacity: 0.06;
    pointer-events: none;
}

/* Logo */
.dictio-reg-brand {
    position: relative;
    z-index: 2;
}

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

/* Body branding */
.dictio-reg-body {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 0 24px;
}

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

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

/* Feature list */
.dictio-reg-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dictio-reg-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.dictio-reg-feature-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(200, 150, 58, 0.12);
    border: 0.5px solid rgba(200, 150, 58, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.dictio-reg-feature-icon .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #c8963a;
}

.dictio-reg-feature-text {
    display: flex;
    flex-direction: column;
}

.dictio-reg-feature-text strong {
    font-size: 12px;
    font-weight: 500;
    color: #c8daea;
    margin-bottom: 2px;
}

.dictio-reg-feature-text span {
    font-size: 11px;
    color: #4d6d87;
    line-height: 1.5;
}

/* Footer branding */
.dictio-reg-footer {
    position: relative;
    z-index: 2;
    border-top: 0.5px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
}

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

/* ════════════════════════════════════════════════════════════
 * PANEL KANAN — Form
 * ════════════════════════════════════════════════════════════ */
#register-page #dictio-form-panel {
    background: #ffffff;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header form */
.dictio-reg-form-header {
    margin-bottom: 20px;
}

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

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

/* Divider label */
.dictio-reg-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 14px;
}

.dictio-reg-divider hr {
    flex: 1;
    border: none;
    border-top: 0.5px solid #e2e8f0;
    margin: 0;
}

.dictio-reg-divider span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #94a3b8;
    white-space: nowrap;
}

/* ── Form fields ────────────────────────────────────────────── */
#dictio-form-panel label,
#dictio-form-panel legend {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 14px 0 6px 0;
    padding: 0;
}

#dictio-form-panel label:first-of-type {
    margin-top: 0;
}

#dictio-form-panel input[type="text"],
#dictio-form-panel input[type="email"],
#dictio-form-panel input[type="password"] {
    width: 100%;
    height: 38px;
    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;
    margin: 0;
}

#dictio-form-panel input[type="text"]:focus,
#dictio-form-panel input[type="email"]:focus,
#dictio-form-panel input[type="password"]:focus {
    border-color: #c8963a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(200, 150, 58, 0.1);
}

/* Password wrapper */
#dictio-form-panel .wp-pwd {
    position: relative;
}

#dictio-form-panel .wp-hide-pw {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0;
    display: flex;
    align-items: center;
}

#dictio-form-panel .wp-hide-pw .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Password strength */
#dictio-form-panel #pass-strength-result {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 0;
    margin-top: 6px;
    display: inline-block;
    border: none !important;
    background: transparent !important;
    width: auto !important;
}

#dictio-form-panel #pass-strength-result.strong { color: #16a34a; }
#dictio-form-panel #pass-strength-result.good   { color: #ca8a04; }
#dictio-form-panel #pass-strength-result.bad,
#dictio-form-panel #pass-strength-result.short  { color: #dc2626; }

/* Caps lock */
#dictio-form-panel #caps-warning {
    font-size: 11px;
    color: #f59e0b;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Hint password */
#dictio-form-panel .description.indicator-hint {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.55;
    margin-top: 6px;
}

/* Fieldset xprofile */
#dictio-form-panel fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* Visibility field */
#dictio-form-panel .field-visibility-settings-notoggle {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Privacy policy */
#dictio-form-panel .bp-signup-privacy-policy {
    font-size: 12px;
    color: #64748b;
    margin: 12px 0;
}

/* ── Tombol submit ──────────────────────────────────────────── */
#register-page .submit,
#dictio-form-panel .submit {
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
}

#register-page .submit input[type="submit"],
#register-page #submit {
    width: 100%;
    height: 40px;
    background: #0d1f35;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.01em;
    transition: background 0.15s;
    display: block;
}

#register-page .submit input[type="submit"]:hover,
#register-page #submit:hover {
    background: #152c47;
}

/* ── Link masuk ─────────────────────────────────────────────── */
.dictio-reg-login-link {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #64748b;
}

.dictio-reg-login-link a {
    color: #c8963a;
    text-decoration: none;
    font-weight: 500;
}

.dictio-reg-login-link a:hover {
    text-decoration: underline;
}

/* ── Responsive mobile ──────────────────────────────────────── */
@media (max-width: 680px) {
    .register-page #buddypress,
    body.register #buddypress {
        margin: 24px auto;
        padding: 0 12px;
    }

    #register-page .layout-wrap {
        grid-template-columns: 1fr;
        border-radius: 12px;
    }

    #register-page #basic-details-section {
        min-height: auto;
        padding: 28px 24px;
        order: 2;
    }

    #register-page #dictio-form-panel {
        padding: 28px 24px;
        order: 1;
    }

    .dictio-reg-headline {
        font-size: 17px;
    }

    .dictio-reg-body {
        padding: 20px 0 16px;
    }
}
