/* ============================================
   JATTIX CLOUD PROFESSIONAL THEME
   Enterprise Credit Infrastructure Platform
   ============================================ */

/* CSS Variables - Professional Color Palette */
:root {
    /* Primary Colors - Deep Blue Professional */
    --jx-primary: #0f172a;
    --jx-primary-light: #1e293b;
    --jx-primary-dark: #020617;

    /* Accent Colors - Modern Blue */
    --jx-accent: #3b82f6;
    --jx-accent-light: #60a5fa;
    --jx-accent-dark: #2563eb;
    --jx-accent-hover: #1d4ed8;

    /* Secondary Colors */
    --jx-secondary: #64748b;
    --jx-secondary-light: #94a3b8;
    --jx-secondary-dark: #475569;

    /* Success, Warning, Error */
    --jx-success: #10b981;
    --jx-success-light: #34d399;
    --jx-warning: #f59e0b;
    --jx-warning-light: #fbbf24;
    --jx-error: #ef4444;
    --jx-error-light: #f87171;

    /* Neutral Colors */
    --jx-white: #ffffff;
    --jx-gray-50: #f8fafc;
    --jx-gray-100: #f1f5f9;
    --jx-gray-200: #e2e8f0;
    --jx-gray-300: #cbd5e1;
    --jx-gray-400: #94a3b8;
    --jx-gray-500: #64748b;
    --jx-gray-600: #475569;
    --jx-gray-700: #334155;
    --jx-gray-800: #1e293b;
    --jx-gray-900: #0f172a;

    /* Gradients */
    --jx-gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --jx-gradient-accent: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --jx-gradient-sidebar: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --jx-gradient-header: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);

    /* Shadows */
    --jx-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --jx-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --jx-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --jx-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --jx-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --jx-radius-sm: 0.25rem;
    --jx-radius: 0.5rem;
    --jx-radius-md: 0.75rem;
    --jx-radius-lg: 1rem;
    --jx-radius-xl: 1.5rem;

    /* Transitions */
    --jx-transition: all 0.2s ease-in-out;
    --jx-transition-slow: all 0.3s ease-in-out;
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--jx-gray-100);
    color: var(--jx-gray-800);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   SIDEBAR / ASIDE STYLES
   ============================================ */

#kt_aside,
.aside {
    background: var(--jx-gradient-sidebar) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.aside-dark {
    background: var(--jx-gradient-sidebar) !important;
}

.aside-logo {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem !important;
}

.aside-logo a {
    color: var(--jx-white) !important;
    font-weight: 600 !important;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
}

.aside-logo img {
    border-radius: var(--jx-radius-sm);
}

/* Sidebar Menu */
.aside-menu {
    background: transparent !important;
}

.menu-title {
    color: var(--jx-gray-300) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    transition: var(--jx-transition);
}

.menu-link {
    padding: 0.75rem 1.5rem !important;
    margin: 0.125rem 0.75rem !important;
    border-radius: var(--jx-radius) !important;
    transition: var(--jx-transition) !important;
}

.menu-link:hover {
    background: rgba(59, 130, 246, 0.15) !important;
}

.menu-link:hover .menu-title {
    color: var(--jx-white) !important;
}

.menu-link:hover .menu-icon i,
.menu-link:hover .menu-bullet i {
    color: var(--jx-accent-light) !important;
}

.menu-link.active,
.menu-item.here > .menu-link {
    background: var(--jx-gradient-accent) !important;
}

.menu-link.active .menu-title,
.menu-item.here > .menu-link .menu-title {
    color: var(--jx-white) !important;
}

.menu-icon i,
.menu-bullet i,
.menu i.bi {
    color: var(--jx-gray-400) !important;
    font-size: 1.1rem !important;
    transition: var(--jx-transition);
}

.menu-arrow {
    color: var(--jx-gray-500) !important;
}

/* Submenu */
.menu-sub-accordion {
    background: rgba(0, 0, 0, 0.15) !important;
    border-radius: var(--jx-radius) !important;
    margin: 0.25rem 0.75rem !important;
    padding: 0.5rem 0 !important;
}

.menu-sub-accordion .menu-link {
    padding: 0.5rem 1rem 0.5rem 2.5rem !important;
    margin: 0 !important;
}

/* ============================================
   HEADER STYLES
   ============================================ */

#kt_header,
.header {
    background: var(--jx-gradient-header) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--jx-shadow-md);
}

.header .container-fluid {
    padding: 0 1.5rem;
}

/* Header Balance Display */
#kt_header_nav {
    background: transparent !important;
    padding: 0 !important;
}

#kt_header_nav h3 {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: var(--jx-gray-300) !important;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem !important;
    border-radius: var(--jx-radius);
    margin: 0 0.5rem !important;
}

/* Header Links */
.topbar a {
    color: var(--jx-gray-300) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--jx-radius);
    transition: var(--jx-transition);
    text-decoration: none !important;
}

.topbar a:hover {
    color: var(--jx-white) !important;
    background: rgba(59, 130, 246, 0.15);
}

.topbar a i {
    margin-right: 0.375rem;
}

/* Mobile Menu Toggle */
#kt_aside_mobile_toggle,
#kt_header_menu_mobile_toggle {
    color: var(--jx-white) !important;
}

/* ============================================
   CONTENT AREA STYLES
   ============================================ */

.content {
    background: var(--jx-gray-100);
    padding: 1.5rem !important;
}

#kt_content_container {
    max-width: 100%;
}

/* ============================================
   CARD STYLES
   ============================================ */

.card {
    background: var(--jx-white);
    border: 1px solid var(--jx-gray-200);
    border-radius: var(--jx-radius-lg) !important;
    box-shadow: var(--jx-shadow);
    transition: var(--jx-transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--jx-shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    background: var(--jx-white) !important;
    border-bottom: 1px solid var(--jx-gray-200);
    padding: 1.25rem 1.5rem !important;
    min-height: auto !important;
}

.card-body {
    padding: 1.5rem !important;
}

.card-title {
    font-weight: 600;
    color: var(--jx-gray-800);
    margin: 0;
}

/* Dashboard Cards */
.dashcards {
    background: var(--jx-white) !important;
    border: 1px solid var(--jx-gray-200) !important;
    border-radius: var(--jx-radius-lg) !important;
    position: relative;
    overflow: hidden;
}

.dashcards::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--jx-gradient-accent);
}

.dashcards .fas,
.dashcards .bi {
    color: var(--jx-accent) !important;
    opacity: 0.9;
}

.dashcards .fw-bolder {
    color: var(--jx-gray-800) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

.dashcards .text-red,
.dashcards .fs-5 {
    color: var(--jx-gray-500) !important;
    font-size: 0.9rem !important;
}

.dashcards .card-header {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.dashcards .card-body {
    padding-top: 0.5rem !important;
}

/* Custom Card Colors */
.custom-card {
    background: var(--jx-white) !important;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: var(--jx-radius);
    transition: var(--jx-transition);
    font-size: 0.875rem;
    border: none;
}

.btn-primary {
    background: var(--jx-gradient-accent) !important;
    border: none !important;
    color: var(--jx-white) !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--jx-accent-hover) !important;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--jx-gray-600) !important;
    border: none !important;
    color: var(--jx-white) !important;
}

.btn-secondary:hover {
    background: var(--jx-gray-700) !important;
}

.btn-success {
    background: linear-gradient(135deg, var(--jx-success) 0%, #059669 100%) !important;
    border: none !important;
    color: var(--jx-white) !important;
}

.btn-danger {
    background: linear-gradient(135deg, var(--jx-error) 0%, #dc2626 100%) !important;
    border: none !important;
    color: var(--jx-white) !important;
}

.btn-warning {
    background: linear-gradient(135deg, var(--jx-warning) 0%, #d97706 100%) !important;
    border: none !important;
    color: var(--jx-white) !important;
}

.btn-light {
    background: var(--jx-gray-100) !important;
    border: 1px solid var(--jx-gray-300) !important;
    color: var(--jx-gray-700) !important;
}

.btn-light:hover {
    background: var(--jx-gray-200) !important;
    border-color: var(--jx-gray-400) !important;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-control,
.form-select {
    border: 1px solid var(--jx-gray-300);
    border-radius: var(--jx-radius);
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: var(--jx-transition);
    background-color: var(--jx-white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--jx-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: var(--jx-gray-400);
}

.form-label {
    font-weight: 500;
    color: var(--jx-gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

/* Form Card Sections */
.card-header.bg-secondary {
    background: var(--jx-gradient-primary) !important;
    color: var(--jx-white) !important;
    border-radius: var(--jx-radius-lg) var(--jx-radius-lg) 0 0 !important;
}

.card-header.bg-secondary h3 {
    color: var(--jx-white) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* ============================================
   TABLE STYLES
   ============================================ */

.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--jx-gray-50);
    color: var(--jx-gray-700);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    padding: 0.875rem 1rem;
    border-bottom: 2px solid var(--jx-gray-200);
}

.table tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--jx-gray-100);
    color: var(--jx-gray-700);
    font-size: 0.875rem;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--jx-gray-50);
}

.table-striped tbody tr:nth-of-type(odd) {
    background: var(--jx-gray-50);
}

/* DataTables Styling */
.dataTables_wrapper {
    padding: 1rem 0;
}

.dataTables_filter input {
    border: 1px solid var(--jx-gray-300) !important;
    border-radius: var(--jx-radius) !important;
    padding: 0.5rem 0.75rem !important;
}

.dataTables_length select {
    border: 1px solid var(--jx-gray-300) !important;
    border-radius: var(--jx-radius) !important;
    padding: 0.375rem 0.5rem !important;
}

.page-link {
    border: 1px solid var(--jx-gray-300);
    color: var(--jx-gray-700);
    border-radius: var(--jx-radius) !important;
    margin: 0 0.125rem;
}

.page-link:hover {
    background: var(--jx-gray-100);
    border-color: var(--jx-gray-400);
}

.page-item.active .page-link {
    background: var(--jx-accent) !important;
    border-color: var(--jx-accent) !important;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer,
#kt_footer {
    background: var(--jx-white) !important;
    border-top: 1px solid var(--jx-gray-200);
    padding: 1rem 1.5rem !important;
}

.footer .text-muted {
    color: var(--jx-gray-500) !important;
    font-size: 0.8125rem;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal-content {
    border: none;
    border-radius: var(--jx-radius-lg);
    box-shadow: var(--jx-shadow-xl);
}

.modal-header {
    background: var(--jx-gray-50);
    border-bottom: 1px solid var(--jx-gray-200);
    padding: 1rem 1.5rem;
    border-radius: var(--jx-radius-lg) var(--jx-radius-lg) 0 0;
}

.modal-title {
    font-weight: 600;
    color: var(--jx-gray-800);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    background: var(--jx-gray-50);
    border-top: 1px solid var(--jx-gray-200);
    padding: 1rem 1.5rem;
}

/* ============================================
   ALERT STYLES
   ============================================ */

.alert {
    border: none;
    border-radius: var(--jx-radius);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left: 4px solid var(--jx-success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left: 4px solid var(--jx-error);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border-left: 4px solid var(--jx-warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border-left: 4px solid var(--jx-accent);
}

/* ============================================
   BADGE STYLES
   ============================================ */

.badge {
    font-weight: 500;
    padding: 0.375rem 0.625rem;
    border-radius: var(--jx-radius);
    font-size: 0.75rem;
}

.badge-success,
.bg-success {
    background: var(--jx-success) !important;
}

.badge-danger,
.bg-danger {
    background: var(--jx-error) !important;
}

.badge-warning,
.bg-warning {
    background: var(--jx-warning) !important;
    color: var(--jx-white) !important;
}

.badge-primary,
.bg-primary {
    background: var(--jx-accent) !important;
}

/* ============================================
   METAMASK SECTION STYLES
   ============================================ */

#meta-container {
    background: var(--jx-white) !important;
    border-radius: var(--jx-radius-lg) !important;
    box-shadow: var(--jx-shadow-md) !important;
    padding: 2rem !important;
    margin: 1.5rem;
    text-align: center;
    border: 1px solid var(--jx-gray-200);
}

#meta-container h1 {
    color: var(--jx-gray-800) !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

#loginMetaMaskButton {
    background: linear-gradient(135deg, #f6851b 0%, #e2761b 100%) !important;
    color: var(--jx-white) !important;
    border: none !important;
    border-radius: var(--jx-radius) !important;
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    cursor: pointer;
    transition: var(--jx-transition);
    box-shadow: 0 2px 8px rgba(246, 133, 27, 0.3);
}

#loginMetaMaskButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(246, 133, 27, 0.4);
}

#metamaskstatus {
    margin-top: 1rem !important;
    font-size: 0.875rem !important;
}

.status-connected {
    color: var(--jx-success) !important;
    font-weight: 500;
}

.status-disconnected {
    color: var(--jx-gray-500) !important;
}

/* ============================================
   PAGE HEADING STYLES
   ============================================ */

.full-page-heading {
    background: var(--jx-gradient-primary) !important;
    color: var(--jx-white) !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    padding: 1rem 1.5rem !important;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem !important;
    border-radius: 0 !important;
}

/* ============================================
   SCROLLBAR STYLES
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--jx-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--jx-gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--jx-gray-500);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

#kt_scrolltop,
.scrolltop {
    background: var(--jx-gradient-accent) !important;
    border-radius: var(--jx-radius) !important;
    box-shadow: var(--jx-shadow-lg);
}

#kt_scrolltop:hover {
    transform: translateY(-2px);
}

#kt_scrolltop .svg-icon svg path,
#kt_scrolltop .svg-icon svg rect {
    fill: var(--jx-white) !important;
}

/* ============================================
   LOADER STYLES
   ============================================ */

#loader .spinner-border {
    color: var(--jx-accent) !important;
    width: 3rem;
    height: 3rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-primary {
    color: var(--jx-accent) !important;
}

.text-muted {
    color: var(--jx-gray-500) !important;
}

.bg-light {
    background: var(--jx-gray-50) !important;
}

.border {
    border-color: var(--jx-gray-200) !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 991.98px) {
    .aside {
        box-shadow: var(--jx-shadow-xl);
    }

    .content {
        padding: 1rem !important;
    }

    .full-page-heading {
        margin: -1rem -1rem 1rem -1rem !important;
        font-size: 1.1rem !important;
    }
}

@media (max-width: 767.98px) {
    .dashcards {
        margin-bottom: 1rem;
    }

    #meta-container {
        margin: 1rem;
        padding: 1.5rem !important;
    }

    #meta-container h1 {
        font-size: 1.25rem !important;
    }
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.3s ease-out;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .aside,
    .header,
    .footer,
    #kt_scrolltop {
        display: none !important;
    }

    .content {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ============================================
   LOGIN / AUTH PAGE STYLES
   Enterprise Cloud Design
   ============================================ */

.auth-page {
    display: flex;
    min-height: 100vh;
    background: var(--jx-gray-100);
}

/* Left Branding Panel */
.auth-branding {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: pulse-bg 15s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

.auth-branding-content {
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.auth-logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
}

.auth-logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
}

.auth-headline {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.auth-subheadline {
    font-size: 1.125rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 480px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.auth-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-feature-icon i {
    font-size: 1.25rem;
    color: #60a5fa;
}

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

.auth-feature-text strong {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.auth-feature-text span {
    font-size: 0.875rem;
    color: #64748b;
}

.auth-branding-footer {
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-branding-footer span {
    font-size: 0.875rem;
    color: #64748b;
}

/* Right Form Panel */
.auth-form-panel {
    flex: 0 0 520px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.auth-form-container {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.auth-form-header p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
    display: block;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    z-index: 1;
}

.input-wrapper .form-control {
    padding-left: 2.75rem;
    height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.input-wrapper .form-control:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-wrapper .form-control::placeholder {
    color: #94a3b8;
}

/* Captcha Styling */
.captcha-group {
    margin-bottom: 1.5rem;
}

.captcha-wrapper {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
}

.captcha-wrapper img {
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.captcha-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.captcha-input-group .form-control {
    flex: 1;
    height: 44px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
}

.captcha-refresh-btn {
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.captcha-refresh-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

/* Login Button */
.btn-login {
    width: 100%;
    height: 52px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Form Footer */
.auth-form-footer {
    margin-top: 2rem;
    text-align: center;
}

.auth-link {
    display: inline-block;
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.auth-divider {
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    position: relative;
    background: #fff;
    padding: 0 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.btn-register {
    width: 100%;
    height: 48px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 10px;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    background: transparent;
    transition: all 0.2s ease;
}

.btn-register:hover {
    background: #3b82f6;
    color: #fff;
}

/* Panel Footer */
.auth-panel-footer {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.auth-panel-footer > span {
    display: block;
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.auth-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.auth-footer-links a {
    font-size: 0.8125rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer-links a:hover {
    color: #3b82f6;
}

/* Responsive Auth Page */
@media (max-width: 1199.98px) {
    .auth-branding {
        padding: 2rem;
    }

    .auth-headline {
        font-size: 2rem;
    }

    .auth-form-panel {
        flex: 0 0 480px;
    }
}

@media (max-width: 991.98px) {
    .auth-page {
        flex-direction: column;
    }

    .auth-branding {
        padding: 2rem;
        min-height: auto;
    }

    .auth-headline {
        font-size: 1.75rem;
    }

    .auth-subheadline {
        margin-bottom: 2rem;
    }

    .auth-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .auth-feature {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 200px;
    }

    .auth-form-panel {
        flex: 1;
        padding: 2rem;
    }

    .auth-panel-footer {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .auth-branding {
        padding: 1.5rem;
    }

    .auth-logo {
        margin-bottom: 1.5rem;
    }

    .auth-headline {
        font-size: 1.5rem;
    }

    .auth-subheadline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .auth-features {
        display: none;
    }

    .auth-branding-footer {
        display: none;
    }

    .auth-form-panel {
        padding: 1.5rem;
    }

    .auth-form-header h2 {
        font-size: 1.5rem;
    }
}
