/* Auth Pages Custom Styling */

:root {
    --rt-primary: #4e73df;
    --rt-primary-dark: #2e59d9;
    --rt-secondary: #858796;
    --rt-success: #1cc88a;
    --rt-danger: #e74a3b;
    --rt-warning: #f6c23e;
    --rt-info: #36b9cc;
}

body.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-wrapper {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.auth-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

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

.auth-brand h2 {
    color: var(--rt-primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.auth-brand p {
    color: var(--rt-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.auth-card .form-control {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    border: 1px solid #d1d3e2;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card .form-control:focus {
    border-color: var(--rt-primary);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.15);
}

.auth-card .form-control.is-invalid {
    border-color: var(--rt-danger);
    box-shadow: 0 0 0 0.2rem rgba(231, 74, 59, 0.15);
}

.auth-card .form-control.is-valid {
    border-color: var(--rt-success);
    box-shadow: 0 0 0 0.2rem rgba(28, 200, 138, 0.15);
}

.auth-card .btn-primary {
    background-color: var(--rt-primary);
    border-color: var(--rt-primary);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.auth-card .btn-primary:hover {
    background-color: var(--rt-primary-dark);
    border-color: var(--rt-primary-dark);
    transform: translateY(-1px);
}

.auth-card .btn-primary:disabled {
    opacity: 0.7;
    transform: none;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    color: var(--rt-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

.alert-auth {
    border-radius: 8px;
    font-size: 0.9rem;
}

.spinner-btn {
    display: none;
}

.btn-loading .spinner-btn {
    display: inline-block;
}

.btn-loading .btn-text {
    display: none;
}

/* Dashboard Layout */
.dashboard-wrapper {
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 250px;
    min-height: 100vh;
    background-color: #4e73df;
    background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
    padding-top: 1rem;
}

.dashboard-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
}

.dashboard-sidebar .nav-link:hover {
    color: #fff;
}

.dashboard-sidebar .sidebar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    display: block;
}

.dashboard-content {
    flex: 1;
    padding: 1.5rem;
    background-color: #f8f9fc;
}

.dashboard-navbar {
    background-color: #fff;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card .card-body {
        padding: 1.5rem;
    }

    .auth-wrapper {
        max-width: 100%;
    }

    .dashboard-sidebar {
        width: 100%;
        min-height: auto;
    }
}
