/* Global */
body {
    font-family: Arial, sans-serif;
}

/* Header spacing */
header h2 {
    font-weight: bold;
}

/* Card hover effect */
.card:hover {
    transform: scale(1.02);
    transition: 0.2s;
}

/* Login Page */
.login-container {
    min-height: 100vh;
}

.bg-image {
    background: url('../img/bg.jpg') no-repeat center center;
    background-size: cover;
}

/* Form styling */
form input {
    border-radius: 8px;
}

/* Button consistency */
.btn {
    border-radius: 8px;
}

/* Dashboard page */
body.dashboard-page {
    font-family: 'Segoe UI', sans-serif;
}

.dashboard-page .navbar {
    background-color: #c8102e;
}

.dashboard-page .navbar-brand,
.dashboard-page .nav-link {
    color: #fff !important;
}

.dashboard-page .sidebar {
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    min-height: calc(100vh - 56px);
    padding: 20px 0;
}

.dashboard-page .sidebar .list-group-item {
    border: none;
    padding: 10px 20px;
}

.dashboard-page .sidebar .list-group-item:hover {
    background-color: #e9ecef;
    color: #c8102e;
}

.dashboard-page .feature-card {
    background-color: #2c2c2c;
    color: #fff;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
}

.dashboard-page .feature-card h6 {
    color: #ffd700;
    font-weight: bold;
}

.dashboard-page .feature-card p {
    font-size: 0.9em;
    color: #ccc;
}

.dashboard-page .main-article {
    background-color: #1e1e1e;
    color: #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.dashboard-page footer {
    background-color: #2c2c2c;
    color: #aaa;
    padding: 15px;
}

.dashboard-page footer a {
    color: #aaa;
    margin-left: 10px;
    text-decoration: none;
}

.dashboard-page footer a:hover {
    color: #fff;
}

/* Login and register page */
body.auth-page {
    box-sizing: border-box;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
    box-sizing: border-box;
}

.auth-page .card-container {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-page .tab-nav {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-page .tab-btn {
    flex: 1;
    padding: 18px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.auth-page .tab-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 3px solid #4da6ff;
}

.auth-page .tab-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8);
}

.auth-page .tab-panel {
    display: none;
}

.auth-page .tab-panel.active {
    display: flex;
}

.auth-page .login-panel {
    min-height: 480px;
}

.auth-page .login-image {
    flex: 0 0 45%;
    background: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=600&q=80') center/cover no-repeat;
    position: relative;
}

.auth-page .login-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent);
}

.auth-page .login-form-side {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-page .login-form-side h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1.4em;
    margin-bottom: 6px;
}

.auth-page .login-form-side p.sub {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85em;
    margin-bottom: 28px;
}

.auth-page .register-panel {
    padding: 48px 60px;
    flex-direction: column;
}

.auth-page .register-panel h5 {
    color: #fff;
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-page .register-subtitle {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    font-size: 0.65em;
}

.auth-page .rainbow-bar {
    height: 3px;
    background: linear-gradient(to right, #4da6ff, #a78bfa, #f472b6, #fb923c, #4ade80);
    border-radius: 2px;
    margin-bottom: 28px;
}

.auth-page .form-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8em;
    margin-bottom: 4px;
}

.auth-page .form-control {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9em;
    transition: border-color 0.2s, background 0.2s;
}

.auth-page .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #4da6ff;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.2);
}

.auth-page .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.auth-page .btn-signin,
.auth-page .btn-register-main,
.auth-page .btn-signin-alt {
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
}

.auth-page .btn-signin {
    background: #4da6ff;
    padding: 11px;
    font-size: 0.9em;
    width: 100%;
    transition: background 0.2s, transform 0.1s;
}

.auth-page .btn-signin:hover {
    background: #3390e8;
    transform: translateY(-1px);
}

.auth-page .btn-register-main {
    background: #4da6ff;
    padding: 12px 30px;
    font-size: 0.95em;
    transition: background 0.2s;
}

.auth-page .btn-register-main:hover {
    background: #3390e8;
}

.auth-page .btn-signin-alt {
    background: #2ecc71;
    padding: 12px 30px;
    font-size: 0.95em;
    transition: background 0.2s;
}

.auth-page .btn-signin-alt:hover {
    background: #27ae60;
}

.auth-page .forgot-link {
    color: #4da6ff;
    font-size: 0.8em;
    text-decoration: none;
}

.auth-page .forgot-link:hover {
    color: #80c4ff;
}

.auth-page .form-check-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82em;
}

.auth-page .terms-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8em;
}

.auth-page .terms-text a,
.auth-page .accent-text {
    color: #4da6ff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .auth-page {
        padding: 20px;
    }

    .auth-page .login-image {
        display: none;
    }

    .auth-page .login-form-side,
    .auth-page .register-panel {
        padding: 30px 24px;
    }

    .auth-page .register-actions {
        flex-direction: column;
    }
}