:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --bg-dark: #0F172A;
    --bg-panel: rgba(30, 41, 59, 0.7);
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.1);
    --error-color: #EF4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Authentication Styling */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Background animated orbs for premium aesthetics */
.auth-wrapper::before,
.auth-wrapper::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    animation: float 10s ease-in-out infinite;
}

.auth-wrapper::before {
    background: rgba(79, 70, 229, 0.3);
    top: -100px;
    left: -100px;
}

.auth-wrapper::after {
    background: rgba(236, 72, 153, 0.2);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.auth-glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 10;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-brand {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #EC4899 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.auth-brand h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-brand p {
    color: var(--text-secondary);
    font-weight: 300;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

.form-group input:focus+label {
    color: var(--primary-color);
}

.form-group input.is-invalid {
    border-color: var(--error-color);
}

.invalid-feedback {
    display: block;
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    margin-left: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6366F1 100%);
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(79, 70, 229, 0.5);
}

.btn-block {
    width: 100%;
}

/* Pagination Styling */
.pagination-controls {
    display: flex;
    justify-content: flex-end;
    /* Align to the right for a cleaner look */
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    /* Margin below since it's above the table now */
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.page-tab {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.page-tab:hover {
    background: rgba(79, 70, 229, 0.15);
    color: var(--text-primary);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
}

.page-tab.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6366F1 100%);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}