/* ============================================
   CoreUI Tarzı Profesyonel Admin Arayüzü
   Bilim Şehri Gaziantep Deneyaplar Arası Kara Aracı Yarışması 2026
   ============================================ */

/* ========== CSS VARIABLES ========== */
:root {
    --cui-sidebar-width: 256px;
    --cui-sidebar-bg: #1a1a1a;
    --cui-sidebar-color: rgba(255, 255, 255, 0.87);
    --cui-sidebar-hover-bg: rgba(255, 193, 7, 0.15);
    --cui-sidebar-active-bg: rgba(255, 193, 7, 0.25);
    --cui-sidebar-active-color: #ffc107;
    --cui-header-height: 60px;
    --cui-header-bg: #ffffff;
    --cui-header-border: #e5e7eb;
    --cui-body-bg: #f5f5f5;
    --cui-card-bg: #ffffff;
    --cui-border-color: #e5e7eb;
    --cui-text-primary: #1a1a1a;
    --cui-text-secondary: #6b7280;
    --cui-primary: #ffc107;
    --cui-primary-hover: #ffb300;
    --cui-primary-dark: #1a1a1a;
    --cui-success: #10b981;
    --cui-danger: #ef4444;
    --cui-warning: #f59e0b;
    --cui-info: #06b6d4;
    --cui-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --cui-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --cui-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --cui-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --cui-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --cui-transition: all 0.2s ease-in-out;
}

/* ========== RESET & BASE ========== */
* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--cui-text-primary);
    background-color: var(--cui-body-bg);
    height: 100%;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.app {
    overflow-x: hidden;
}

/* ========== WRAPPER LAYOUT ========== */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    margin-left: var(--cui-sidebar-width);
    transition: margin-left 0.2s;
    width: calc(100% - var(--cui-sidebar-width));
    max-width: calc(100% - var(--cui-sidebar-width));
    position: relative;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .body {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .sidebar {
        margin-left: calc(-1 * var(--cui-sidebar-width));
    }
    
    .sidebar.show {
        margin-left: 0;
    }
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: var(--cui-sidebar-width);
    height: 100vh;
    background-color: var(--cui-sidebar-bg);
    color: var(--cui-sidebar-color);
    box-shadow: var(--cui-shadow-lg);
    display: flex;
    flex-direction: column;
    transition: margin-left 0.2s;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    min-height: var(--cui-header-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    color: var(--cui-sidebar-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--cui-transition);
}

.sidebar-brand:hover {
    color: #ffffff;
}

.sidebar-brand i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: #3b82f6;
}

.sidebar-brand-text {
    white-space: nowrap;
}

.sidebar-toggler {
    background: none;
    border: none;
    color: var(--cui-sidebar-color);
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.25rem;
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0;
    overflow-y: auto;
}

.sidebar-nav .nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav .nav-item {
    margin: 0.125rem 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    color: var(--cui-sidebar-color);
    text-decoration: none;
    transition: var(--cui-transition);
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-nav .nav-link:hover {
    background-color: var(--cui-sidebar-hover-bg);
    color: #ffffff;
    border-left-color: rgba(255, 255, 255, 0.3);
}

.sidebar-nav .nav-link.active {
    background-color: var(--cui-sidebar-active-bg);
    color: var(--cui-sidebar-active-color);
    border-left-color: var(--cui-sidebar-active-color);
    font-weight: 500;
}

.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--cui-sidebar-active-color);
}

.sidebar-nav .nav-icon {
    width: 1.5rem;
    font-size: 1.125rem;
    margin-right: 0.75rem;
    text-align: center;
}

.sidebar-nav .nav-text {
    flex: 1;
    white-space: nowrap;
}

.sidebar-nav .nav-title {
    padding: 0.75rem 1.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

.sidebar-nav .nav-title:first-child {
    margin-top: 0;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.sidebar-user {
    display: flex;
    align-items: center;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.875rem;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.125rem;
}

/* ========== HEADER/TOPBAR ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--cui-header-height);
    background-color: var(--cui-header-bg);
    border-bottom: 1px solid var(--cui-header-border);
    box-shadow: var(--cui-shadow-sm);
    width: 100%;
    flex-shrink: 0;
    overflow: visible;
}

.header-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1.5rem;
    width: 100%;
}

.header-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.header-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cui-text-secondary);
}

.header-search input {
    padding-left: 2.5rem;
    border: 1px solid var(--cui-border-color);
    border-radius: 0.5rem;
    background-color: #f9fafb;
    transition: var(--cui-transition);
}

.header-search input:focus {
    background-color: #ffffff;
    border-color: var(--cui-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-nav-items {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.header-nav .nav-item {
    position: relative;
}

.header-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: var(--cui-text-primary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: var(--cui-transition);
    position: relative;
    cursor: pointer;
}

.header-nav .nav-link.dropdown-toggle::after {
    display: none;
}

.header-nav .nav-link:hover {
    background-color: #f3f4f6;
    color: var(--cui-primary);
}

.header-nav .nav-link i {
    font-size: 1.25rem;
}

.badge-notification {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
}

.avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb;
    color: var(--cui-text-secondary);
    font-size: 1.25rem;
}

.avatar-sm {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1rem;
}

/* ========== MAIN CONTENT ========== */
.main {
    flex: 1;
    padding: 1.5rem 0;
    min-height: calc(100vh - var(--cui-header-height));
    width: 100%;
    overflow-x: hidden;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.main .container-fluid {
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    position: relative;
    z-index: 1;
}

/* ========== CARDS ========== */
.card {
    background-color: var(--cui-card-bg);
    border: 1px solid var(--cui-border-color);
    border-radius: 0.75rem;
    box-shadow: var(--cui-shadow);
    margin-bottom: 1.5rem;
    transition: var(--cui-transition);
}

.card:hover {
    box-shadow: var(--cui-shadow-md);
}

.card-header {
    padding: 1.25rem 1.5rem;
    background-color: #ffffff;
    border-bottom: 1px solid var(--cui-border-color);
    border-radius: 0.75rem 0.75rem 0 0;
    font-weight: 600;
    font-size: 1rem;
    color: var(--cui-text-primary);
    display: flex;
    align-items: center;
}

.card-header i {
    margin-right: 0.5rem;
    color: var(--cui-primary);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: #f9fafb;
    border-top: 1px solid var(--cui-border-color);
    border-radius: 0 0 0.75rem 0.75rem;
}

/* ========== BUTTONS ========== */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: var(--cui-transition);
    border: none;
    box-shadow: var(--cui-shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--cui-shadow-md);
}

.btn-primary {
    background-color: #ffc107;
    color: #1a1a1a;
    border: none;
}

.btn-primary:hover {
    background-color: #ffb300;
    color: #1a1a1a;
}

.btn-success {
    background-color: var(--cui-success);
    color: #ffffff;
}

.btn-danger {
    background-color: var(--cui-danger);
    color: #ffffff;
}

.btn-warning {
    background-color: var(--cui-warning);
    color: #ffffff;
}

.btn-info {
    background-color: var(--cui-info);
    color: #ffffff;
}

.btn-secondary {
    background-color: #6b7280;
    color: #ffffff;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* ========== FORMS ========== */
.form-label {
    font-weight: 500;
    color: var(--cui-text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control,
.form-select {
    border: 1px solid var(--cui-border-color);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: var(--cui-transition);
    background-color: #ffffff;
}

.form-control:focus,
.form-select:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
    outline: none;
}

.form-control:disabled,
.form-select:disabled {
    background-color: #f3f4f6;
    opacity: 0.6;
}

/* ========== ALERTS ========== */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--cui-success);
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--cui-danger);
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--cui-warning);
}

.alert-info {
    background-color: #cffafe;
    color: #164e63;
    border-left: 4px solid var(--cui-info);
}

/* ========== TABLES ========== */
.table {
    background-color: var(--cui-card-bg);
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead {
    background-color: #f9fafb;
}

.table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--cui-text-secondary);
    padding: 1rem;
}

.table tbody tr {
    border-bottom: 1px solid var(--cui-border-color);
    transition: var(--cui-transition);
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* ========== BADGES ========== */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.75rem;
}

.bg-primary { background-color: var(--cui-primary) !important; }
.bg-primary.text-white { color: #1a1a1a !important; }
.bg-success { background-color: var(--cui-success) !important; }
.bg-danger { background-color: var(--cui-danger) !important; }
.bg-warning { background-color: var(--cui-warning) !important; }
.bg-info { background-color: var(--cui-info) !important; }
.text-primary { color: var(--cui-primary) !important; }

/* ========== DROPDOWN ========== */
.dropdown-menu {
    border: none;
    box-shadow: var(--cui-shadow-lg);
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
    z-index: 1050;
    min-width: 200px;
}

.header-nav .dropdown-menu {
    z-index: 1051;
}

.dropdown-item {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    transition: var(--cui-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    color: var(--cui-primary);
}

.dropdown-item i {
    width: 1.25rem;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item {
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--cui-primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--cui-text-secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--cui-text-secondary);
    margin: 0 0.5rem;
}

/* ========== FOOTER ========== */
.footer {
    padding: 2rem 0;
    background-color: var(--cui-card-bg);
    border-top: 1px solid var(--cui-border-color);
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

.footer .container-fluid {
    width: 100%;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    max-height: 60px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(0);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    max-height: 60px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(0);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

/* ========== UTILITIES ========== */
.text-muted {
    color: var(--cui-text-secondary) !important;
}

.bg-light {
    background-color: #f9fafb !important;
}

.border-light {
    border-color: var(--cui-border-color) !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        z-index: 1050;
    }
    
    .sidebar.show {
        margin-left: 0;
    }
    
    .main {
        padding: 1rem 0;
    }
    
    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .header-search {
        display: none !important;
    }
    
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .header-container {
        padding: 0 1rem !important;
    }
    
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-logos {
        margin-bottom: 0.75rem;
    }
    
    .footer-logo-img {
        max-height: 50px;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ========== PAGE HEADER ========== */
.page-header {
    margin-bottom: 1.5rem;
    opacity: 1 !important;
    visibility: visible !important;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cui-text-primary);
    margin: 0;
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--cui-text-secondary);
    margin-top: 0.25rem;
}

/* ========== STATS CARDS ========== */
.stats-card {
    background: #ffc107;
    color: #1a1a1a;
    border: none;
}

.stats-card .card-body {
    padding: 1.5rem;
}

.stats-card-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.stats-card-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    color: #1a1a1a;
}

/* ========== LOADING ========== */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ========== MODAL ========== */
.modal-content {
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--cui-shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--cui-border-color);
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--cui-border-color);
    padding: 1rem 1.5rem;
}

/* ========== LIST GROUP ========== */
.list-group-item {
    border: 1px solid var(--cui-border-color);
    padding: 0.875rem 1rem;
    transition: var(--cui-transition);
}

.list-group-item:hover {
    background-color: #f9fafb;
    border-color: var(--cui-primary);
}

.list-group-item.active {
    background-color: var(--cui-primary);
    border-color: var(--cui-primary);
    color: #ffffff;
}

/* ========== PROGRESS BAR ========== */
.progress {
    height: 0.75rem;
    border-radius: 0.375rem;
    background-color: #e5e7eb;
}

.progress-bar {
    background-color: var(--cui-primary);
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ========== LOGIN/REGISTER PAGES ========== */
.login-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--cui-body-bg);
}

/* Login/Register sayfalarında body scroll'u engelle */
.login-wrapper {
    height: 100vh;
    overflow: hidden;
}

.login-page {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.login-page .container-fluid {
    height: 100vh;
    padding: 0;
    overflow: hidden;
}

.login-page .row {
    height: 100vh;
    margin: 0;
}

/* Sol Taraf - Görsel Bölümü */
.login-image-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    height: 100vh;
}

.login-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
}

.login-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.login-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.3) 0%, rgba(26, 26, 26, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-image-content {
    text-align: center;
    color: #ffffff;
    z-index: 2;
    max-width: 500px;
}

.login-image-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.4);
}

.login-image-logo i {
    font-size: 2.5rem;
    color: #1a1a1a;
}

.login-image-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-image-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #ffc107;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-image-text {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Sağ Taraf - Form Bölümü */
.login-form-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #ffffff;
    padding: 1rem;
    overflow: hidden;
    height: 100vh;
}

.login-form-container {
    width: 100%;
    max-width: 500px;
    padding: 0;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #ffc107 #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    margin-bottom: auto;
}

.login-form-container::-webkit-scrollbar {
    width: 6px;
}

.login-form-container::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.login-form-container::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 3px;
}

.login-form-container::-webkit-scrollbar-thumb:hover {
    background: #ffb300;
}

.login-form-header {
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 0.5rem;
    flex-shrink: 0;
}

.login-form-container .alert {
    flex-shrink: 0;
    margin-bottom: 0;
    margin-top: 0;
}

.login-form-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.login-form-logo i {
    font-size: 2rem;
    color: #1a1a1a;
}

.login-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #1a1a1a;
}

.login-form-subtitle {
    font-size: 0.9375rem;
    margin: 0;
    color: #6b7280;
}

.login-body {
    padding: 0;
}

.login-form {
    padding: 0;
    margin: 0;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.login-form .form-group {
    margin-bottom: 0.625rem;
    flex-shrink: 0;
}

.login-form .form-group:last-of-type {
    margin-bottom: 0;
}

.login-form .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.login-form .row > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.login-form .form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--cui-text-primary);
    margin-bottom: 0.5rem;
}

.login-form .form-label i {
    color: #ffc107;
    font-size: 1rem;
}

.login-form .form-control {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    border: 2px solid var(--cui-border-color);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    background-color: #f9fafb;
}

.login-form small.text-muted {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.2;
}

.login-form .form-control:focus {
    background-color: #ffffff;
    border-color: #ffc107;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.15);
    outline: none;
}

.login-form select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    appearance: none;
}

.btn-login {
    width: 100%;
    padding: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background: #ffc107;
    color: #1a1a1a;
    border: none;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    margin-top: 0.375rem;
    flex-shrink: 0;
}

.btn-login:hover {
    transform: translateY(-2px);
    background: #ffb300;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    color: #1a1a1a;
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    font-size: 1.125rem;
}

.login-form-footer {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    text-align: center;
    border-top: 1px solid var(--cui-border-color);
    flex-shrink: 0;
}

.login-form-footer-text {
    margin: 0;
    font-size: 0.875rem;
    color: var(--cui-text-secondary);
}

.login-link {
    color: #ffc107;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: #ffb300;
    text-decoration: underline;
}

.login-wrapper .card {
    opacity: 1 !important;
    transform: none !important;
}

/* ========== FOOTER ========== */
.footer {
    background-color: #ffffff;
    border-top: 1px solid var(--cui-border-color);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    max-height: 60px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(0);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

/* ========== RESPONSIVE LOGIN ========== */
@media (max-width: 991.98px) {
    .login-image-section {
        display: none !important;
    }
    
    .login-form-section {
        padding: 1rem;
        align-items: flex-start;
    }
    
    .login-form-container {
        max-width: 100%;
        padding: 0;
        max-height: calc(100vh - 2rem);
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .login-form-header {
        margin-bottom: 1rem;
    }
    
    .login-form-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .login-form-logo i {
        font-size: 1.75rem;
    }
    
    .login-form-title {
        font-size: 1.75rem;
    }
    
    .login-form-subtitle {
        font-size: 0.875rem;
    }
    
    .login-form .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .login-form .row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 1rem;
    }
    
    .login-form .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
    
    .login-form-footer {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .login-form-section {
        padding: 1rem;
    }
    
    .login-form-container {
        padding: 0.5rem 0;
    }
    
    .login-form-header {
        margin-bottom: 1.5rem;
    }
    
    .login-form-logo {
        width: 50px;
        height: 50px;
    }
    
    .login-form-logo i {
        font-size: 1.5rem;
    }
    
    .login-form-title {
        font-size: 1.5rem;
    }
}

/* ========== ANIMATIONS ========== */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
