/* ===== Dashboard Layout ===== */
/* Shares the same design tokens from style.css */

.dashboard-body {
    margin: 0;
    padding: 0;
    background: var(--muted);
    min-height: 100vh;
    display: flex;
}

/* ===== Sidebar ===== */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

[dir="ltr"] .sidebar {
    right: auto;
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header .logo {
    color: white;
    font-size: 1.25rem;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-section {
    padding: 0.75rem 1.5rem 0.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    position: relative;
}

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

.sidebar-link.active {
    border-right: 3px solid var(--primary);
}

[dir="ltr"] .sidebar-link.active {
    border-right: none;
    border-left: 3px solid var(--primary);
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-badge {
    margin-right: auto;
    background: var(--error);
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
}

[dir="ltr"] .sidebar-badge {
    margin-right: 0;
    margin-left: auto;
}

.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 0;
}

.sidebar-footer .text-danger {
    color: #f87171 !important;
}

/* ===== Main Content ===== */
.dashboard-main {
    margin-right: 280px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

[dir="ltr"] .dashboard-main {
    margin-right: 0;
    margin-left: 280px;
}

/* ===== Top Bar ===== */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--foreground);
    cursor: pointer;
}

.topbar-info h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: var(--muted);
    color: var(--foreground);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.topbar-btn:hover {
    background: var(--border);
}

.topbar-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--error);
    color: white;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.topbar-username {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
}

/* ===== Dashboard Content ===== */
.dashboard-content {
    padding: 1.5rem;
    flex: 1;
}

/* ===== Stat Cards ===== */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.dash-stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.dash-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.dash-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.dash-stat-icon.blue { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.dash-stat-icon.green { background: linear-gradient(135deg, var(--success), #10b981); }
.dash-stat-icon.orange { background: linear-gradient(135deg, var(--warning), #f97316); }
.dash-stat-icon.purple { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.dash-stat-icon.red { background: linear-gradient(135deg, var(--error), #f87171); }

.dash-stat-info h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    font-family: var(--font-english);
}

.dash-stat-info span {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

/* ===== Cards & Sections ===== */
.dash-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.dash-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
}

.dash-card-header a {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

/* ===== Tables ===== */
.dash-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-table th {
    text-align: right;
    padding: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted-foreground);
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[dir="ltr"] .dash-table th {
    text-align: left;
}

.dash-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--muted);
    font-size: 0.9rem;
    color: var(--foreground);
}

.dash-table tr:hover td {
    background: var(--sky-light);
}

/* ===== Status Badges ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.open, .status-badge.active, .status-badge.completed, .status-badge.paid, .status-badge.approved, .status-badge.published {
    background: #dcfce7; color: #166534;
}

.status-badge.pending, .status-badge.in_progress, .status-badge.submitted, .status-badge.held, .status-badge.enrolled, .status-badge.draft {
    background: #fef3c7; color: #92400e;
}

.status-badge.closed, .status-badge.cancelled, .status-badge.rejected, .status-badge.failed, .status-badge.suspended, .status-badge.archived, .status-badge.disputed {
    background: #fef2f2; color: #991b1b;
}

/* ===== Charts ===== */
.chart-container {
    position: relative;
    height: 280px;
    width: 100%;
}

.dash-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* ===== Alerts ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* ===== Auth Pages ===== */
.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 1.5rem 2rem;
    background: linear-gradient(135deg, var(--sky-light), var(--sky));
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-xl);
}

.auth-card-wide {
    max-width: 600px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    margin-bottom: 1rem;
}

.auth-logo i {
    color: var(--primary);
}

.auth-header h2 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-group label i {
    color: var(--primary);
    font-size: 0.8rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-arabic);
    font-size: 0.95rem;
    color: var(--foreground);
    transition: border-color 0.2s;
    outline: none;
    background: white;
}

[dir="ltr"] .form-group input,
[dir="ltr"] .form-group textarea,
[dir="ltr"] .form-group select {
    font-family: var(--font-english);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Role Selector */
.role-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.role-option {
    cursor: pointer;
}

.role-option input {
    display: none;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
    text-align: center;
}

.role-card i {
    font-size: 1.5rem;
    color: var(--muted-foreground);
}

.role-card span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.role-option input:checked + .role-card {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
}

.role-option input:checked + .role-card i,
.role-option input:checked + .role-card span {
    color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* ===== Forms (shared) ===== */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1rem;
}

/* ===== Messages Page ===== */
.messages-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    height: calc(100vh - 140px);
}

.conv-list {
    background: white;
    border-radius: var(--radius-lg);
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
}

.conv-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--muted);
    text-decoration: none;
    color: var(--foreground);
    transition: background 0.2s;
}

.conv-item:hover, .conv-item.active {
    background: var(--sky-light);
}

.conv-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.conv-info {
    flex: 1;
    overflow: hidden;
}

.conv-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
}

.conv-last-msg {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-unread {
    background: var(--error);
    color: white;
    font-size: 0.65rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.chat-area {
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-msg {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    line-height: 1.6;
}

.chat-msg.sent {
    align-self: flex-start;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

[dir="ltr"] .chat-msg.sent {
    align-self: flex-end;
    border-bottom-right-radius: var(--radius-lg);
    border-bottom-left-radius: 4px;
}

.chat-msg.received {
    align-self: flex-end;
    background: var(--muted);
    color: var(--foreground);
    border-bottom-left-radius: 4px;
}

[dir="ltr"] .chat-msg.received {
    align-self: flex-start;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: 4px;
}

.chat-msg-meta {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.chat-input {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.chat-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-arabic);
    outline: none;
    font-size: 0.9rem;
}

.chat-input input:focus {
    border-color: var(--primary);
}

/* ===== Notifications ===== */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notif-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.notif-item.unread {
    background: var(--sky-light);
    border-color: var(--primary);
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon.success { background: #dcfce7; color: #166534; }
.notif-icon.info { background: #dbeafe; color: #1e40af; }
.notif-icon.warning { background: #fef3c7; color: #92400e; }
.notif-icon.error { background: #fef2f2; color: #991b1b; }

.notif-content { flex: 1; }
.notif-title { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.notif-body { font-size: 0.8rem; color: var(--muted-foreground); }
.notif-time { font-size: 0.75rem; color: var(--muted-foreground); white-space: nowrap; }

/* ===== Skills Tags ===== */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    background: var(--sky);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== Skills Checkboxes ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.skills-grid label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.skills-grid label:hover {
    border-color: var(--primary);
    background: var(--sky-light);
}

/* ===== Empty State ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted-foreground);
    min-height: 200px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(100%);
    }
    [dir="ltr"] .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-close {
        display: block;
    }
    .dashboard-main {
        margin-right: 0;
    }
    [dir="ltr"] .dashboard-main {
        margin-left: 0;
    }
    .topbar-toggle {
        display: block;
    }
    .dash-grid {
        grid-template-columns: 1fr;
    }
    .messages-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .role-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dash-stats {
        grid-template-columns: 1fr 1fr;
    }
    .role-selector {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== Quick Login Styles ===== */
.auth-card-login {
    max-width: 680px;
    width: 100%;
}

.quick-login-section {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.quick-login-header {
    text-align: center;
    margin-bottom: 1rem;
}

.quick-login-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    background: #e0f2fe;
    color: #0284c7;
    margin-bottom: 0.35rem;
}

.quick-login-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0.2rem 0;
}

.quick-login-header p {
    font-size: 0.83rem;
    color: var(--muted-foreground);
    margin: 0;
}

/* Admin Quick Login Card */
.quick-login-admin-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1.15rem;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    border: 1.5px solid #334155;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: inherit;
    transition: all 0.25s ease;
    margin-bottom: 0.85rem;
    font-family: inherit;
}

.quick-login-admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -4px rgba(15, 23, 42, 0.35);
    border-color: #6366f1;
}

.quick-login-admin-card:active {
    transform: translateY(0);
}

.quick-login-admin-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.quick-login-admin-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(99, 102, 241, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
    font-size: 1.15rem;
}

.quick-login-admin-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-login-admin-badge {
    font-size: 0.7rem;
    background: rgba(99, 102, 241, 0.35);
    color: #c7d2fe;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.quick-login-admin-email {
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: monospace;
}

.quick-login-admin-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    transition: all 0.2s;
}

.quick-login-admin-card:hover .quick-login-admin-cta {
    background: #4f46e5;
    color: #ffffff;
}

/* 4 Roles Grid */
.quick-login-grid-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.65rem;
    padding: 0 0.2rem;
}

.quick-login-grid-title i {
    color: var(--primary);
}

.quick-login-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.quick-login-item {
    margin: 0;
}

.quick-login-btn {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0.9rem;
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.quick-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--role-color, #0ea5e9);
    opacity: 0;
    transition: opacity 0.2s;
}

.quick-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px -4px rgba(0, 0, 0, 0.08);
    border-color: var(--role-color, #0ea5e9);
}

.quick-login-btn:hover::before {
    opacity: 1;
}

.quick-login-btn:active {
    transform: translateY(0);
}

.quick-login-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.quick-login-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: white;
}

.role-accountant {
    --role-color: #0284c7;
}
.role-accountant .quick-login-icon-box {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
}

.role-company {
    --role-color: #059669;
}
.role-company .quick-login-icon-box {
    background: linear-gradient(135deg, #059669, #34d399);
}

.role-institute {
    --role-color: #7c3aed;
}
.role-institute .quick-login-icon-box {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.role-consulting {
    --role-color: #d97706;
}
.role-consulting .quick-login-icon-box {
    background: linear-gradient(135deg, #d97706, #fbbf24);
}

.quick-login-role-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-full);
    background: #f1f5f9;
    color: var(--navy);
}

.quick-login-body {
    flex: 1;
    margin-bottom: 0.5rem;
}

.quick-login-user-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.15rem;
}

.quick-login-user-role {
    font-size: 0.76rem;
    color: var(--muted-foreground);
    margin-bottom: 0.3rem;
}

.quick-login-user-email {
    display: inline-block;
    font-size: 0.72rem;
    color: #475569;
    background: #f8fafc;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-family: monospace;
}

.quick-login-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px dashed #e2e8f0;
    padding-top: 0.45rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--role-color, #0ea5e9);
    gap: 0.35rem;
}

/* Loading state */
.quick-login-btn.loading,
.quick-login-admin-card.loading {
    pointer-events: none;
    opacity: 0.85;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0 1.25rem;
    color: var(--muted-foreground);
    font-size: 0.84rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-divider span {
    padding: 0 0.85rem;
    background: white;
}

@media (max-width: 580px) {
    .quick-login-grid {
        grid-template-columns: 1fr;
    }
    .auth-card-login {
        padding: 1.5rem 1rem;
    }
}

