/* ========== REGISTRATION FORM ========== */

/* Core Centered Auth Card Frame Wrapper */
.blog-auth-wrapper {
    max-width: 650px; /* Kept tight to look like a premium standalone signup card */
    margin: 5rem auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.blog-auth-card {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: 0.75rem;
    padding: 3.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.blog-auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.blog-auth-heading {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.blog-auth-subtext {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.auth-fields-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Side-by-Side Email Inputs Flex Box Layout */
.auth-email-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

/* Security/Captcha Element Box Model styling */
.auth-security-verification-card {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border-subtle);
    border-radius: 0.5rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-security-verification-card img {
    border-radius: 0.375rem;
    border: 1px solid var(--color-border-subtle);
}

/* Utility Class modifications */
.full-width {
    width: 100%;
    padding: 0.85rem !important;
    font-size: 1.05rem !important;
}

/* Responsive Adaptive Sizing Layers layout track */
@media (max-width: 640px) {
    .blog-auth-wrapper {
        margin: 2rem auto;
    }
    
    .blog-auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-email-grid {
        grid-template-columns: 1fr;
    }
}



/* ===== PASSWORD ===== */

.auth-password-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle-trigger {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.password-toggle-trigger:hover {
    color: var(--color-primary);
}

@media (max-width: 640px) {
    .auth-password-grid {
        grid-template-columns: 1fr;
    }
}




/* ========== LOGIN FORM ========== */

/* Helper row to arrange label and "Forgot Password?" side-by-side */
.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.auth-forgot-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-forgot-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.auth-field-note {
    font-size: 0.8rem;
    color: var(--color-text-disabled);
    margin-top: 0.25rem;
}

/* Custom checkbox alignment tuning box layout */
.auth-remember-row {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
}

.blog-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--color-border-strong);
    border-radius: 4px;
    background-color: var(--color-bg-main);
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: all 0.15s ease;
}

.blog-checkbox:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.blog-checkbox:checked::before {
    content: "";
    width: 8px;
    height: 8px;
    transform: scale(1);
    background-color: var(--color-primary-contrast);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.checkbox-text-track {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}



/* ==========================================================================
   USER PROFILE EDITING DASHBOARD INTERFACE
   ========================================================================== */

.profile-fields-canvas {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-section-card {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border-subtle);
    border-radius: 0.5rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

/* Restructuring raw elements injected dynamically by custom fields templates looping hooks */
.profile-injected-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

/* Force standard input elements generated within MyBB loops to adapt to our tokens layout rule */
.profile-injected-inputs input[type="text"],
.profile-injected-inputs select,
.profile-injected-inputs textarea {
    width: 100%;
    background-color: var(--color-bg-surface);
    color: var(--color-text-main);
    border: 1px solid var(--color-border-subtle);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

.profile-injected-inputs input[type="text"]:focus,
.profile-injected-inputs select:focus,
.profile-injected-inputs textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-bg-surface);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.profile-injected-inputs textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* Tiny help text descriptions loaded under your custom profile elements fields loops */
.profile-injected-inputs .smalltext,
.profile-injected-inputs .description {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}




/* ===== CUSTOM FIELD ===== */

/* Custom Profile Field Block Layout */
.usercp-custom-field-block {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Elegant field description typography positioning */
.profile-field-description {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Adjust layout rules for raw selectors injected into $code (e.g., Radio arrays, Checkboxes) */
.profile-input-engine-wrap {
    width: 100%;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

/* Clean spacing adjustments for instances where multiple choices render vertically */
.profile-input-engine-wrap label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

/* Sync raw system radio choices with your UI tokens */
.profile-input-engine-wrap input[type="radio"],
.profile-input-engine-wrap input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}




/* ==========================================================================
   EDITORIAL AUTHOR PROFILE DASHBOARD
   ========================================================================== */

.author-profile-wrapper {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* Author Spotlight Hero Card Component */
.author-spotlight-card {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: 0.75rem;
    padding: 3.5rem 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    transition: background-color 0.3s ease;
}

.author-avatar-frame {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem auto;
}

.author-display-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--color-border-subtle);
    background-color: var(--color-bg-main);
}

.author-display-name {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.03em;
    margin: 0 0 0.35rem 0;
}

.author-display-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin: 0 0 1rem 0;
}

.author-joined-meta {
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-disabled);
    background-color: var(--color-bg-main);
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
}

/* Dynamic Content Grid System Layout split */
.profile-two-column-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    align-items: start;
}

.profile-column-main,
.profile-column-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.profile-content-card {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: 0.75rem;
    padding: 2rem;
}

.profile-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem 0;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--color-text-disabled);
}

/* Custom Editorial Bio Copy Typographic settings (FID 2) */
.author-bio-statement {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--color-text-main);
}

.text-muted-placeholder {
    color: var(--color-text-disabled);
    font-style: italic;
    font-size: 1rem;
}

/* Definition List Row Structure (FIDs 1 & 3) */
.profile-meta-datalist {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
}

.meta-data-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--color-border-subtle);
    padding-bottom: 0.75rem;
}

.meta-data-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.meta-label {
    font-weight: 500;
    color: var(--color-text-muted);
}

.meta-value {
    font-weight: 600;
    color: var(--color-text-main);
    margin: 0;
}

/* Actionable Social Channel Link Blocks Component UI Stack */
.profile-channels-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.channel-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    border: 1px solid var(--color-border-subtle);
    background-color: var(--color-bg-main);
    transition: all 0.2s ease-in-out;
}

.channel-icon-wrap {
    display: grid;
    place-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.375rem;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border-subtle);
    color: var(--color-text-muted);
    transition: all 0.2s ease;
}

.channel-details-wrap {
    display: flex;
    flex-direction: column;
}

.channel-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.channel-action-prompt {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Interactive Brand Token Highlights on Hover states */
.channel-action-card:hover {
    transform: translateY(-2px);
    background-color: var(--color-bg-surface);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.channel-whatsapp:hover { border-color: var(--color-success); }
.channel-whatsapp:hover .channel-icon-wrap { color: var(--color-success); background-color: var(--color-success-bg); }

.channel-linkedin:hover { border-color: var(--color-info); }
.channel-linkedin:hover .channel-icon-wrap { color: var(--color-info); background-color: var(--color-info-bg); }

.channel-facebook:hover { border-color: var(--color-primary); }
.channel-facebook:hover .channel-icon-wrap { color: var(--color-primary); background-color: var(--color-bg-surface-hover); }

.channel-phone:hover { border-color: var(--color-text-main); }
.channel-phone:hover .channel-icon-wrap { color: var(--color-text-main); background-color: var(--color-bg-surface-hover); }

/* Administrative System Fallback Actions Panel elements modification rules */
.administrative-actions-frame {
    border-color: var(--color-warning);
    background-color: var(--color-warning-bg);
}

.admin-buttons-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-buttons-cluster a {
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 0.25rem;
    background-color: var(--color-bg-surface);
    color: var(--color-text-main);
    border: 1px solid var(--color-border-strong);
}

/* Responsive Structural Breakdown Layers layout configuration track */
@media (max-width: 850px) {
    .profile-two-column-grid {
        grid-template-columns: 1fr;
    }
    
    .author-spotlight-card {
        padding: 2.5rem 1.5rem;
    }
}

/* Inline Owner Controls Header Component */
.author-spotlight-card {
    position: relative; /* Anchors the absolute top positioning action container */
}

.owner-actions-top {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.blog-btn-edit-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border-strong);
    color: var(--color-text-main);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.blog-btn-edit-profile:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-primary-contrast);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Fallback Container Structure for users missing custom Avatars */
.fallback-avatar-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-main) !important;
    color: var(--color-text-disabled);
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Hover-Activated Avatar Modification Panel */
.author-avatar-frame:hover .avatar-change-overlay {
    opacity: 1;
    visibility: visible;
}

.avatar-change-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.65); /* Elegant translucent dark overlay tint */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 3px solid var(--color-primary);
    box-sizing: border-box;
}

.avatar-change-overlay:hover {
    background-color: rgba(15, 23, 42, 0.8);
    transform: scale(1.02);
}

@media (max-width: 640px) {
    .owner-actions-top {
        position: relative;
        top: 0;
        right: 0;
        justify-content: center;
        margin-bottom: 1.5rem;
    }
}




/* ==========================================================================
   USER CONTROL PANEL AVATAR CONFIGURATION 
   ========================================================================== */

.avatar-manager-canvas {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

/* Guidelines and Current Avatar Flex Row split layout block */
.avatar-current-display-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border-subtle);
    border-radius: 0.5rem;
    padding: 2rem;
}

.avatar-instructional-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: 0.5rem;
}

.avatar-specs-accent {
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 0.25rem;
}

/* Preview Image Circular Element Shield styling blocks */
.current-avatar-circle-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-border-strong);
    background-color: var(--color-bg-surface);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-avatar-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Drag and Drop style file selector layout */
.avatar-upload-dropzone {
    border: 2px dashed var(--color-border-strong);
    background-color: var(--color-bg-surface);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.2s ease;
}

.avatar-upload-dropzone:hover {
    border-color: var(--color-primary);
}

.file-uploader-field-row {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.avatar-file-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-disabled);
    letter-spacing: 0.05em;
}

.file-input-element {
    padding: 0.5rem !important;
    background-color: var(--color-bg-main) !important;
}

/* User CP Action Footer alignment grid layout handles split elements */
.usercp-avatar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-actions-left {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.blog-btn-danger {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-danger-bg);
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
    padding: 0.75rem 1.2rem;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.blog-btn-danger:hover {
    background-color: var(--color-danger);
    color: var(--color-primary-contrast);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

@media (max-width: 640px) {
    .avatar-current-display-card {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .usercp-avatar-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .footer-actions-left {
        flex-direction: column;
        width: 100%;
    }
    .footer-actions-left .blog-btn,
    .footer-actions-right .blog-btn-danger {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}