:root {
    --auth-bg-overlay: rgba(0, 27, 15, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/assets/imgs/hero-main.jpg') center/cover no-repeat;
    position: relative;
    padding: 24px;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-container) 0%, var(--primary) 100%);
    opacity: 0.85;
    z-index: 1;
}

.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    color: white;
}

.auth-logo {
    margin-bottom: 32px;
}

.auth-logo img {
    height: 50px;
    width: auto;
}

.auth-card h1 {
    font-size: 28px;
    margin-bottom: 12px;
    color: white;
}

.auth-card p {
    font-size: 15px;
    opacity: 0.7;
    margin-bottom: 32px;
}

.auth-form .form-group {
    text-align: right;
    margin-bottom: 24px;
}

.auth-form label {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.auth-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.auth-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--tertiary-container);
    box-shadow: none;
}

.auth-footer {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.auth-footer a {
    color: var(--tertiary-container);
    opacity: 0.9;
}

.auth-footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    background-color: var(--surface);
}

.sidebar {
    background-color: var(--primary-container);
    color: white;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    margin-bottom: 48px;
    padding: 0 16px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.nav-item i {
    font-size: 18px;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    color: var(--tertiary-container);
}

.main-content {
    padding: 40px;
    overflow-y: auto;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dash-header h1 {
    font-size: 24px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--tertiary-container);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-container);
    font-weight: 800;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-ambient);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info h3 {
    font-size: 14px;
    color: var(--on-surface-variant);
    margin-bottom: 8px;
}

.stat-info .value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-container);
    font-family: 'Cairo', sans-serif;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--surface-container-low);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-container);
}

.dash-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-ambient);
}

.dash-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-table th {
    text-align: right;
    padding: 16px;
    font-size: 14px;
    color: var(--on-surface-variant);
    font-weight: 600;
    border-bottom: 1px solid var(--surface-container);
}

.dash-table td {
    padding: 20px 16px;
    font-size: 15px;
    border-bottom: 1px solid var(--surface-container-low);
}

.dash-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.status-active { background: #e6f4ea; color: #1e7e34; }
.status-pending { background: #fff8e1; color: #f57c00; }

@media (max-width: 1024px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
}
