@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #0ea5e9;
    --bg-color: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --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);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

/* Auth Page specific */
.auth-page {
    display: flex;
    min-height: 100vh;
}

.auth-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--bg-color);
    position: relative;
}

.auth-right {
    flex: 1.2;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.auth-right::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-right::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.login-form {
    width: 100%;
    max-width: 440px;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: slideUp 0.6s ease-out forwards;
}

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

.login-form h1 {
    font-weight: 700;
    color: var(--text-main);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-form h2 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2rem;
}

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

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    display: block;
}

.required-field::after {
    content: "*";
    color: #ef4444;
    margin-left: 4px;
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 42px;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.form-control {
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: #f8fafc;
    font-size: 0.95rem;
    height: 3.2rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

.form-control:focus + i, .form-group:focus-within i {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.auth-welcome {
    text-align: center;
    z-index: 10;
}

.auth-welcome h1 {
    font-weight: 300;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.auth-welcome h2.gradient-text {
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.auth-welcome .welcome-description {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

.auth-copyright {
    position: absolute;
    bottom: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Dashboard / Layout */
.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.dashboard-card .card-body {
    padding: 2.5rem;
}

.dashboard-card .display-4 {
    font-weight: 700;
    color: var(--primary-color);
}

/* Tables */
.table-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-top: 1.5rem;
}

.table {
    vertical-align: middle;
}

.table thead th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f1f5f9;
    transform: scale(1.002);
}

.table td {
    padding: 1.25rem 1.5rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
}

/* Buttons in Table */
.btn-action {
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    transition: all 0.2s ease;
}
.btn-action:hover {
    transform: translateY(-2px);
}

/* Header/Nav */
.navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

/* Responsiveness */
@media (max-width: 992px) {
    .auth-page {
        flex-direction: column-reverse;
    }
    .auth-right {
        padding: 4rem 2rem;
        flex: none;
    }
    .auth-left {
        padding: 2rem 1rem;
    }
    .auth-welcome h2.gradient-text {
        font-size: 2.5rem;
    }
}