﻿/* ── Auth Center — custom overrides for Bootstrap 5 ────────────────────── */

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f6f7fb;
}

/* Navbar active link highlight */
.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--bs-primary) !important;
}

/* App grid cards on dashboard */
.app-card {
    transition: transform .15s, box-shadow .15s;
    cursor: pointer;
    border-radius: 12px;
}
.app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,.1);
}
.app-card .app-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 12px;
}
.app-card .app-name {
    color: #374151;
}

/* Dashboard welcome avatar fallback */
.dashboard-avatar {
    width: 56px;
    height: 56px;
    object-fit: cover;
}

/* Status badges */
.status-active { color: #16a34a; }
.status-disabled { color: #dc2626; }

/* Toast container */
#toast-container { z-index: 1090; }

/* Spinner for login button (legacy compat) */
.spinner {
    width: 14px; height: 14px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-login-shell {
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.12), transparent 35%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.1), transparent 40%),
        linear-gradient(145deg, #f8fafc 0%, #f1f5f9 45%, #eef2ff 100%);
}

.auth-login-hero {
    height: 100%;
    padding: 2rem;
    border-radius: 24px;
    background: linear-gradient(145deg, #1e293b 0%, #334155 42%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

.auth-login-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .875rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: .875rem;
    margin-bottom: 1.25rem;
}

.auth-login-hero__title {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.auth-login-hero__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.86);
    max-width: 42rem;
    margin-bottom: 1.5rem;
}

.auth-login-hero__highlights {
    display: grid;
    gap: 1rem;
}

.auth-login-highlight {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.125rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.auth-login-highlight__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.auth-login-highlight__title {
    font-weight: 600;
    margin-bottom: .25rem;
}

.auth-login-highlight__text {
    color: rgba(255, 255, 255, 0.8);
    font-size: .925rem;
    line-height: 1.6;
}

.auth-login-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.09);
    backdrop-filter: blur(4px);
}

.auth-login-card__logo {
    font-size: 2.5rem;
}

.auth-login-card .form-control,
.auth-login-card .input-group-text,
.auth-login-card .btn-outline-secondary {
    border-color: #dbe3ef;
}

.auth-login-card .form-control:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 .2rem rgba(99, 102, 241, 0.14);
}

.auth-login-card .btn-primary {
    border: none;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.22);
}

.auth-login-card .btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
}

.auth-login-language .lang-flag {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

@media (max-width: 991.98px) {
    .auth-login-hero {
        padding: 1.5rem;
    }
}
