:root {
    --primary-color: #C41E32;
    --primary-hover: #C41E32;
    --success-color: #059669;
    --success-bg: #d1fae5;
    --success-border: #a7f3d0;
    --error-color: #dc2626;
    --error-bg: #fee2e2;
    --error-border: #fecaca;
    --warning-color: #d97706;
    --warning-bg: #fef3c7;
    --warning-border: #fde68a;
    --text-primary: #000000;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --border-focus: #C41E32;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Modern styling for the news form */
.news-form-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; */
}

.news-form-wrapper {
    margin: 2rem;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-secondary);
}

.form-header h1 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.form-description {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Form Title (standalone) */
.form-title {
    font-family: var(--font-arabic);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 1.5rem 0 2rem 0;
    text-align: center;
}

/* RTL alignment for Arabic */
[dir="rtl"] .form-title {
    text-align: right;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    background: transparent;
    color: var(--primary-red);
    text-decoration: none;
    font-family: var(--font-arabic);
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.back-btn:hover {
    background: transparent;
    color: var(--secondary-red);
    text-decoration: underline;
    transform: translateX(-2px);
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid;
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success-color);
    border-color: var(--success-border);
}

.alert-error {
    background-color: var(--error-bg);
    color: var(--error-color);
    border-color: var(--error-border);
}

.alert-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-content {
    flex: 1;
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
}

.form-section legend {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
    padding: 0 0.5rem;
    margin-bottom: 1rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.required {
    color: var(--error-color);
    font-weight: 700;
}

/* Form Inputs */
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem !important;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 6rem;
    /* font-family: inherit; */
}

/* File Input Styling */
.file-input-wrapper {
    position: relative;
}

.form-file {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    min-height: 3rem;
}

.file-input-label:hover {
    border-color: var(--border-focus);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.file-input-label:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.file-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.current-file-link .file-icon {
    color: #ffffff;
}

.file-input-text {
    flex: 1;
}

.file-input-label.has-files {
    border-color: var(--success-color);
    background-color: var(--success-bg);
    color: var(--success-color);
}

/* Form validation states */
.form-input.error,
.form-textarea.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input.error:focus,
.form-textarea.error:focus {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Form Help Text */
.form-help {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Readonly Value Styling */
.readonly-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.75rem 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-height: 2.75rem;
    display: flex;
    align-items: center;
}

/* Form Actions Left Aligned */
.form-actions-left {
    justify-content: flex-start !important;
    text-align: left !important;
}

/* Edit Button Styling */
.btn-edit {
    background-color: #ffffff !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: var(--radius-md) !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: auto !important;
    min-height: 48px !important;
    width: auto !important;
    height: 48px !important;
    gap: 0.5rem !important;
}

.btn-edit:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-edit:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-edit .btn-icon {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
    flex-shrink: 0 !important;
}

.btn-edit .btn-text {
    font-size: 1rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    max-width: 185px;
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color:#ffffff;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn-icon {
    flex-shrink: 0;
}

/* Form Actions */
.form-actions {
    display: flex;
    align-items: center !important;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Loading State */
.form-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.loading-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Editor Container */
.editor-container {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease-in-out;
}

.editor-container:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* WordPress editor styling */
.wp-editor-container {
    border: none !important;
    border-radius: 0 !important;
}

.wp-editor-area {
    border: none !important;
    border-radius: 0 !important;
}

/* TinyMCE styling */
.mce-tinymce {
    border: none !important;
    border-radius: 0 !important;
}

.mce-tinymce .mce-toolbar {
    background: var(--bg-tertiary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 0.5rem !important;
}

.mce-tinymce .mce-edit-area {
    border: none !important;
}

/* Content media items styling */
.content-media-item {
    margin: 1rem 0;
    text-align: center;
}

.content-media-item img,
.content-media-item video {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-width: 100%;
    height: auto;
}

.content-media-item video {
    background: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-form-container {
        margin: 1rem auto;
        padding: 0.5rem;
    }
    
    .news-form-wrapper {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .form-header h1 {
        font-size: 1.5rem;
    }
    
    .form-title {
        font-size: 1.5rem;
        margin: 1rem 0 1.5rem 0;
    }
    
    .back-btn {
        padding: 0.5rem 0;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .form-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .form-section legend {
        font-size: 1rem;
    }
    
    .form-input,
    .form-textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .file-input-label {
        padding: 1rem;
        min-height: 4rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .news-form-wrapper {
        padding: 0;
        margin: 1rem;
    }
    
    .form-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .form-header h1 {
        font-size: 1.25rem;
    }
    
    .form-description {
        font-size: 0.875rem;
    }
    
    .form-section {
        padding: 0.75rem;
    }
    
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .form-input,
    .form-textarea,
    .file-input-label,
    .loading-spinner {
        transition: none;
    }
    
    .loading-spinner {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-input,
    .form-textarea,
    .file-input-label {
        border-width: 3px;
    }
    
    .btn-primary {
        border: 2px solid var(--text-primary);
    }
}

/* Print styles */
@media print {
    .news-form-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .form-actions,
    .file-input-wrapper {
        display: none;
    }
}
html[lang="ar"] .news-form-wrapper {
        direction: rtl;
}

/* RTL Support for Edit Content Page */
[dir="rtl"] .back-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .back-btn:hover {
    transform: translateX(2px);
}
.mce-branding {
    display: none !important;
}
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
    transition: all 0.2s ease-in-out;
}

.form-select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-select.error:focus {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}
[dir="rtl"] input#news_date{
    text-align: right !important;
}

/* ========================================
   REGISTRATION PAGE STYLES
   ======================================== */

.registration-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}


/* Role Selection */
.role-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.role-option {
    position: relative;
}

.role-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--gray-300, #d1d5db);
    border-radius: var(--border-radius-lg, 12px);
    background: var(--white, #ffffff);
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.role-label:hover {
    border-color: var(--gray-600, #4b5563);
    box-shadow: 0 2px 8px rgba(75, 85, 99, 0.1);
}

.role-option input[type="radio"]:checked + .role-label {
    border-color: var(--gray-600, #4b5563);
    background: rgba(75, 85, 99, 0.05);
    box-shadow: 0 2px 8px rgba(75, 85, 99, 0.15);
}

.role-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100, #f3f4f6);
    border-radius: 50%;
    color: var(--gray-600, #4b5563);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.role-option input[type="radio"]:checked + .role-label .role-icon {
    background: var(--gray-600, #4b5563);
    color: var(--white, #ffffff);
}

.role-content {
    text-align: center;
}

.role-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900, #111827);
    margin: 0;
    text-align: center;
}

.role-content p {
    font-size: 0.9rem;
    color: var(--gray-600, #6b7280);
    margin: 0;
}

/* Entity Type Selection */
.entity-type-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.entity-option {
    position: relative;
}

.entity-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.entity-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--gray-300, #d1d5db);
    border-radius: var(--border-radius, 8px);
    background: var(--white, #ffffff);
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.entity-label:hover {
    border-color: var(--gray-600, #4b5563);
    box-shadow: 0 2px 8px rgba(75, 85, 99, 0.1);
}

.entity-option input[type="radio"]:checked + .entity-label {
    border-color: var(--gray-600, #4b5563);
    background: rgba(75, 85, 99, 0.05);
    box-shadow: 0 2px 8px rgba(75, 85, 99, 0.15);
}

.entity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100, #f3f4f6);
    border-radius: 50%;
    color: var(--gray-600, #4b5563);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.entity-option input[type="radio"]:checked + .entity-label .entity-icon {
    background: var(--gray-600, #4b5563);
    color: var(--white, #ffffff);
}

.entity-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900, #111827);
    margin: 0 0 0.25rem 0;
}

.entity-content p {
    font-size: 0.85rem;
    color: var(--gray-600, #6b7280);
    margin: 0;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* File Input Wrapper */
.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px dashed var(--gray-300, #d1d5db);
    border-radius: var(--border-radius, 8px);
    background: var(--gray-50, #f9fafb);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.file-input-label:hover {
    border-color: var(--success-color);
    background: var(--success-border); 
}

.file-icon {
    color: var(--primary-red, #c41e32);
    flex-shrink: 0;
}

.file-input-text {
    color: var(--gray-700, #374151);
    font-weight: 500;
}

/* Form Help */
.form-help {
    font-size: 0.7rem;
    color: var(--gray-500, #6b7280);
    margin-top: 0.5rem;
}

/* Required Field Indicator */
.required {
    color: var(--primary-red, #c41e32);
    margin-left: 0.25rem;
}

/* Loading Spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300, #d1d5db);
    border-top: 2px solid var(--primary-red, #c41e32);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-wrapper {
        padding: 1rem 0;
    }
    
    .registration-header .page-title {
        font-size: 2rem;
    }
    
    .role-selection {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .entity-type-selection {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .role-label,
    .entity-label {
        padding: 1rem;
    }
    
    .role-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .entity-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Form Validation Styles */
.field-error {
    color: var(--primary-red, #c41e32);;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 6px;
    animation: slideIn 0.3s ease-out;
}


@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea {
    border-color: var(--primary-red, #c41e32);;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    background-color: rgba(220, 38, 38, 0.02);
}

.form-group.has-error .form-input:focus,
.form-group.has-error .form-textarea:focus {
    border-color: var(--primary-red, #c41e32);;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
    background-color: rgba(220, 38, 38, 0.05);
}

/* Role and Entity Selection Error Styles */
.form-group.has-error .role-label,
.form-group.has-error .entity-label {
    border-color: var(--primary-red, #c41e32);;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    background: rgba(220, 38, 38, 0.02);
}

.form-group.has-error .role-label:hover,
.form-group.has-error .entity-label:hover {
    border-color: var(--primary-red, #c41e32);;
    background: rgba(220, 38, 38, 0.05);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Fieldset Error Styles */
.form-section.has-error {
    border: 2px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(220, 38, 38, 0.02);
}

.form-section.has-error legend {
    color: var(--primary-red, #c41e32);;
    font-weight: 600;
}

/* RTL Support */
[dir="rtl"] .role-label {
    text-align: right;
}

[dir="rtl"] .entity-label {
    text-align: center;
}
[dir="rtl"] .form-row {
    direction: rtl;
}

/* Success Container Styles */
.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    margin: 1rem 0;
}

.success-icon {
    color: var(--primary-red, #c41e32);;
    margin-bottom: 1.5rem;
    animation: bounceIn 0.8s ease-out;
}

.success-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-red, #c41e32);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.success-message {
    font-size: 1.1rem;
    color: var(--gray-700, #374151);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.5;
}

.success-actions {
    margin-top: 1rem;
}

.success-actions .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 50, 0.2);
}

.success-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 50, 0.3);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Success Container */
@media (max-width: 768px) {
    .success-container {
        min-height: 50vh;
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .success-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .success-message {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .success-icon svg {
        width: 60px;
        height: 60px;
    }
}

/* RTL Support for Success Container */
[dir="rtl"] .success-container {
    text-align: center;
}

[dir="rtl"] .success-title,
[dir="rtl"] .success-message {
    text-align: center;
}

/* ========================================
   LOGIN PAGE STYLES
   ======================================== */

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}



.login-container {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 10;
    animation: slideUpFade 0.8s ease-out;
    margin: 0 auto;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red, #c41e32), #ff6b6b);
    border-radius: 2px;
    animation: expandLine 1s ease-out 0.5s both;
}

@keyframes expandLine {
    from { width: 0; }
    to { width: 50px; }
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red, #c41e32);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    animation: titleSlideIn 0.8s ease-out 0.2s both;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-description {
    font-size: 0.95rem;
    color: var(--gray-600, #6b7280);
    margin: 0;
    line-height: 1.5;
    animation: descriptionFadeIn 0.8s ease-out 0.4s both;
}

@keyframes descriptionFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-section,
.forgot-password-section {
    transition: all 0.3s ease;
}

/* Verification Notice */
.verification-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(255, 234, 167, 0.3);
}

.verification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.verification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.verification-text {
    flex: 1;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.5;
}

.verification-text strong {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.verification-actions {
    text-align: center;
}

.verification-actions .btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.verification-actions .btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Error and Success Messages */
.error-message,
.success-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: messageSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.error-message {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(239, 68, 68, 0.04));
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
    font-size: 0.9rem;
    line-height: 1.4;
}

.error-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #dc2626, #ef4444);
    border-radius: 2px 0 0 2px;
}

.success-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(34, 197, 94, 0.05));
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: #059669;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.1);
}

.success-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #059669, #10b981);
    border-radius: 2px 0 0 2px;
}

.success-message .close-message-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: #059669;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.success-message .close-message-btn:hover {
    opacity: 1;
    background: rgba(16, 185, 129, 0.1);
}

.success-message .success-text {
    padding-right: 2rem;
}

/* Loading spinner styles */
.loading-spinner {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.error-icon,
.success-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700, #374151);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.025em;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(209, 213, 219, 0.4);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
    position: relative;
    animation: inputSlideIn 0.6s ease-out both;
}

.form-input:nth-child(1) { animation-delay: 0.6s; }
.form-input:nth-child(2) { animation-delay: 0.7s; }
.form-input:nth-child(3) { animation-delay: 0.8s; }

@keyframes inputSlideIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red, #c41e32);
    box-shadow: 
        0 0 0 3px rgba(196, 30, 50, 0.1),
        0 4px 12px rgba(196, 30, 50, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.form-input:hover {
    border-color: rgba(196, 30, 50, 0.6);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: rgba(107, 114, 128, 0.6);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.form-input:focus::placeholder {
    color: rgba(107, 114, 128, 0.4);
    transform: translateY(-1px);
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-700, #374151);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    animation: checkboxSlideIn 0.6s ease-out 0.9s both;
    flex-direction: row-reverse;
}

@keyframes checkboxSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.checkbox-label:hover {
    background: rgba(196, 30, 50, 0.05);
    transform: translateX(-3px);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.form-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary-red, #c41e32);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    order: 2;
}

.form-checkbox:checked {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px rgba(196, 30, 50, 0.2);
}

.checkbox-text {
    user-select: none;
    font-weight: 500;
    transition: all 0.3s ease;
    order: 1;
    font-size: 0.85rem;
}

.checkbox-label:hover .checkbox-text {
    color: var(--primary-red, #c41e32);
    font-weight: 600;
}

/* Form Actions */
.form-actions {
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    animation: buttonSlideIn 0.8s ease-out 1s both;
}

@keyframes buttonSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-primary {
    background: var(--primary-red, #c41e32);
    color: var(--white, #ffffff);
    border: 2px solid var(--primary-red, #c41e32);
    box-shadow: 
        0 8px 25px rgba(196, 30, 50, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}
[dir="rtl"] .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: #a01729;
    border-color: #a01729;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(196, 30, 50, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 
        0 6px 20px rgba(196, 30, 50, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 15px;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-bottom: 1.5rem;
    animation: footerFadeIn 0.8s ease-out 1.2s both;
}

@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forgot-password-link,
.back-to-login-link {
    color: var(--primary-red, #c41e32);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.forgot-password-link::before,
.back-to-login-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red, #c41e32), #ff6b6b);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.forgot-password-link:hover,
.back-to-login-link:hover {
    color: #a01729;
    background: rgba(196, 30, 50, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 50, 0.15);
}

.forgot-password-link:hover::before,
.back-to-login-link:hover::before {
    width: 100%;
}

/* Registration Link */
.registration-link {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(229, 231, 235, 0.3);
    animation: registrationFadeIn 0.8s ease-out 1.4s both;
}

@keyframes registrationFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-link p {
    margin: 0;
    color: var(--gray-600, #6b7280);
    font-size: 1rem;
    font-weight: 500;
}

.register-link {
    color: var(--primary-red, #c41e32);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    display: inline-block;
    margin-left: 0.5rem;
}

.register-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(196, 30, 50, 0.1), rgba(255, 107, 107, 0.05));
    border-radius: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.register-link:hover {
    color: #a01729;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 50, 0.2);
}

.register-link:hover::before {
    opacity: 1;
}

/* Loading States */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: buttonSpin 1s linear infinite;
}

@keyframes buttonSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-input.loading {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 25%, rgba(196, 30, 50, 0.1) 50%, rgba(255, 255, 255, 0.8) 75%);
    background-size: 200% 100%;
    animation: inputShimmer 2s infinite;
}

@keyframes inputShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-wrapper {
        padding: 1rem;
        min-height: 100vh;
    }
    
    .login-container {
        padding: 2rem 1.5rem;
        margin: 0 auto;
        border-radius: 20px;
        backdrop-filter: blur(15px);
        max-width: 350px;
    }
    
    .form-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .form-description {
        font-size: 1rem;
    }
    
    .form-input {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .checkbox-label {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    .form-checkbox {
        width: 1.25rem;
        height: 1.25rem;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 0.5rem;
    }
    
    .login-container {
        padding: 1.5rem 1rem;
        margin: 0 auto;
        border-radius: 16px;
        max-width: 320px;
    }
    
    .form-title {
        font-size: 1.75rem;
    }
    
    .form-description {
        font-size: 0.9rem;
    }
    
    .form-input {
        padding: 0.75rem 0.875rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .error-message,
    .success-message {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* RTL Support */
[dir="rtl"] .form-title,
[dir="rtl"] .form-description {
    text-align: center;
}

[dir="rtl"] .form-input::placeholder {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .form-input {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .checkbox-label {
    flex-direction: row;
    justify-content: flex-start;
}

[dir="rtl"] .checkbox-label:hover {
    transform: translateX(5px);
}

[dir="rtl"] .form-checkbox {
    order: 1;
}

[dir="rtl"] .checkbox-text {
    order: 2;
}

[dir="rtl"] .form-footer,
[dir="rtl"] .registration-link {
    text-align: center;
}

/* RTL Placeholder Alignment */
[dir="rtl"] .form-input::placeholder,
[dir="rtl"] .form-textarea::placeholder {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .form-input,
[dir="rtl"] .form-textarea {
    text-align: right;
    direction: rtl;
}

/* ========================================
   LOGIN SHORTCODE STYLES
   ======================================== */

.login-shortcode-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.login-shortcode-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 10;
    animation: slideUpFade 0.8s ease-out;
}

.login-shortcode-message {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.login-shortcode-message p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.login-shortcode-message .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-shortcode-message .btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 50, 0.3);
}

/* Override some styles for shortcode to ensure proper display */
.login-shortcode-wrapper .form-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-shortcode-wrapper .form-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.login-shortcode-wrapper .form-group {
    margin-bottom: 1.25rem;
}

.login-shortcode-wrapper .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(75, 85, 99, 0.6) !important;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.login-shortcode-wrapper .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 3px rgba(196, 30, 50, 0.1),
        0 4px 12px rgba(196, 30, 50, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.login-shortcode-wrapper .form-input:hover {
    border-color: rgba(196, 30, 50, 0.6);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.login-shortcode-wrapper .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.login-shortcode-wrapper .btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    box-shadow: 
        0 8px 25px rgba(196, 30, 50, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.login-shortcode-wrapper .btn-primary:hover {
    background: #a01729;
    border-color: #a01729;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(196, 30, 50, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.login-shortcode-wrapper .btn-primary:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 
        0 6px 20px rgba(196, 30, 50, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.login-shortcode-wrapper .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    width: auto;
    font-size: 0.9rem;
}

.login-shortcode-wrapper .btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.login-shortcode-wrapper .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.login-shortcode-wrapper .form-actions {
    margin-bottom: 1.5rem;
}

.login-shortcode-wrapper .form-footer {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-shortcode-wrapper .forgot-password-link,
.login-shortcode-wrapper .back-to-login-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.login-shortcode-wrapper .forgot-password-link:hover,
.login-shortcode-wrapper .back-to-login-link:hover {
    color: #a01729;
    background: rgba(196, 30, 50, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 50, 0.15);
}

.login-shortcode-wrapper .registration-link {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(229, 231, 235, 0.3);
}

.login-shortcode-wrapper .registration-link p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.login-shortcode-wrapper .register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    display: inline-block;
    margin-left: 0.5rem;
}

.login-shortcode-wrapper .register-link:hover {
    color: #a01729;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 50, 0.2);
}

/* Error and Success Messages for Shortcode */
.login-shortcode-wrapper .error-message,
.login-shortcode-wrapper .success-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: messageSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.login-shortcode-wrapper .error-message {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(239, 68, 68, 0.04));
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
    font-size: 0.9rem;
    line-height: 1.4;
}

.login-shortcode-wrapper .success-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(34, 197, 94, 0.05));
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: #059669;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.1);
}

.login-shortcode-wrapper .error-icon,
.login-shortcode-wrapper .success-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    animation: iconPulse 2s ease-in-out infinite;
}

/* Verification Notice for Shortcode */
.login-shortcode-wrapper .verification-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(255, 234, 167, 0.3);
}

.login-shortcode-wrapper .verification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.login-shortcode-wrapper .verification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.login-shortcode-wrapper .verification-text {
    flex: 1;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.5;
}

.login-shortcode-wrapper .verification-text strong {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.login-shortcode-wrapper .verification-actions {
    text-align: center;
}

/* Responsive Design for Shortcode */
@media (max-width: 768px) {
    .login-shortcode-wrapper {
        padding: 0.5rem;
    }
    
    .login-shortcode-container {
        padding: 1.5rem;
        border-radius: 16px;
        backdrop-filter: blur(15px);
    }
    
    .login-shortcode-wrapper .form-title {
        font-size: 1.5rem;
    }
    
    .login-shortcode-wrapper .form-description {
        font-size: 0.9rem;
    }
    
    .login-shortcode-wrapper .form-input {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .login-shortcode-wrapper .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .login-shortcode-container {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .login-shortcode-wrapper .form-title {
        font-size: 1.25rem;
    }
    
    .login-shortcode-wrapper .form-description {
        font-size: 0.85rem;
    }
    
    .login-shortcode-wrapper .form-input {
        padding: 0.75rem 0.875rem;
    }
    
    .login-shortcode-wrapper .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .login-shortcode-wrapper .error-message,
    .login-shortcode-wrapper .success-message {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* RTL Support for Shortcode */
[dir="rtl"] .login-shortcode-wrapper .form-title,
[dir="rtl"] .login-shortcode-wrapper .form-description {
    text-align: center;
}

[dir="rtl"] .login-shortcode-wrapper .form-input::placeholder {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .login-shortcode-wrapper .form-input {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .login-shortcode-wrapper .form-footer,
[dir="rtl"] .login-shortcode-wrapper .registration-link {
    text-align: center;
}

[dir="rtl"] .login-shortcode-wrapper .register-link {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Achievement Form Styles */
.achievement-form-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.achievement-form-wrapper h1 {
    margin-bottom: 2rem;
    color: #111827;
    font-size: 2rem;
    font-weight: 700;
}

.achievement-form .form-section {
    border: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.achievement-form .form-section legend {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    padding: 0;
}

.achievement-form .form-group {
    margin-bottom: 1.5rem;
}

.achievement-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.achievement-form .form-label .required {
    color: #dc2626;
}

.achievement-form .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.achievement-form .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.achievement-form .file-input-wrapper {
    position: relative;
}

.achievement-form .form-file {
    position: absolute;
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
    overflow: hidden;
}

.achievement-form .file-input-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
    font-weight: 500;
}

.achievement-form .file-input-label:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.achievement-form .form-help {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.achievement-form #featured-image-preview {
    display: none;
    margin-top: 1rem;
}

.achievement-form .gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.achievement-form #featured-preview-img {
    max-width: 300px;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.achievement-form #remove-featured-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
}

.achievement-form #remove-featured-image:hover {
    background: #dc2626;
}

.achievement-form .form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.achievement-form .btn-primary {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: none !important;
    width: auto !important;
}

.achievement-form .btn-primary:hover {
    background: var(--primary-red);
}

.achievement-form .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s;
}

.achievement-form .btn-secondary:hover {
    background: #e5e7eb;
}

.achievement-form-wrapper .alert-success {
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.6) 0%, rgba(52, 211, 153, 0.6) 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(110, 231, 183, 0.35);
    border: 1px solid rgba(110, 231, 183, 0.75);
    display: flex;
    align-items: center;
    gap: 12px;
}

.achievement-form-wrapper .alert-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    gap: 12px;
}

.achievement-form .field-error {
    color: #dc2626;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    display: block;
}

.achievement-form .form-input.error,
.achievement-form .form-textarea.error {
    border-color: #dc2626;
}

/* Multilingual Fields Styling */
.multilingual-section {
    /* margin-top: 2rem;
    padding-top: 2rem; */
    border-top: 2px solid var(--bg-secondary);
}


.language-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.language-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-title::before {
    content: "🌐";
    font-size: 1.2rem;
}

/* RTL Support for Multilingual Fields */
/* [dir="rtl"] .section-title {
    text-align: right;
} */

[dir="rtl"] .language-title {
    flex-direction: row-reverse;
}

.btn{
    width: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* space between icon and text */
  color: inherit;
  text-decoration: none;
  font-size: 16px; /* adjust if needed */
}

.back-link svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
