/* Login + cards de clientes BPO */

/* ——— Login ——— */
.login-view {
    display: flex;
    position: relative;
    width: 100vw;
    min-height: 100vh;
}

.login-back {
    position: absolute;
    top: 32px;
    left: 32px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}

.login-back:hover {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent, #c4ff00);
    transform: translateX(-2px);
}

.login-left {
    width: 55%;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    border-radius: 50%;
    background: rgba(196, 255, 0, 0.08);
    filter: blur(60px);
    pointer-events: none;
}

.login-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.4;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    z-index: 1;
    margin-bottom: 28px;
}

.login-brand__logo {
    height: 72px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.login-left > p {
    font-size: 18px;
    color: #94a3b8;
    max-width: 460px;
    text-align: center;
    line-height: 1.65;
    z-index: 1;
    margin: 0 0 28px;
}

.login-brand__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1;
}

.login-brand__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    min-width: 280px;
}

.login-brand__features li i {
    color: var(--accent, #c4ff00);
    font-size: 12px;
}

.login-form-head {
    margin-bottom: 28px;
}

.login-form-head h2 {
    margin-bottom: 8px !important;
}

.login-form-head p {
    margin-bottom: 0 !important;
    font-size: 14px !important;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.45;
}

.login-alert--error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.login-alert--error i {
    color: #ef4444;
    margin-top: 2px;
}

.login-forgot {
    font-size: 13px;
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-top: 20px;
    text-align: right;
}

.login-forgot:hover {
    text-decoration: underline;
}

/* ——— Cards clientes BPO ——— */
.bpo-clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.bpo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    min-height: 300px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.bpo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.bpo-card__accent {
    height: 4px;
    background: linear-gradient(90deg, #0f172a, #334155);
}

.bpo-card--oficial .bpo-card__accent {
    background: linear-gradient(90deg, #4338ca, #7c3aed, #06b6d4);
}

.bpo-card--trial .bpo-card__accent {
    background: linear-gradient(90deg, #f59e0b, #eab308);
}

.bpo-card--expired .bpo-card__accent {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.bpo-card--oficial {
    border-color: #c7d2fe;
    background: linear-gradient(180deg, #fafaff 0%, #fff 120px);
}

.bpo-card__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 20px 12px;
}

.bpo-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a, #334155);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

.bpo-card--oficial .bpo-card__avatar {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.bpo-card__info {
    flex: 1;
    min-width: 0;
}

.bpo-card__info h3 {
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.02em;
}

.bpo-card--oficial .bpo-card__info h3 {
    color: #312e81;
}

.bpo-card__cnpj {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    display: block;
}

.bpo-card__badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.bpo-card__pill {
    font-size: 9px;
    font-weight: 800;
    padding: 5px 9px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.bpo-card__pill--oficial {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.bpo-card__pill--ativo { background: #d1fae5; color: #065f46; }
.bpo-card__pill--trial { background: #fef3c7; color: #92400e; }
.bpo-card__pill--expired { background: #fee2e2; color: #991b1b; }
.bpo-card__pill--contab { background: #e0e7ff; color: #3730a3; }

.bpo-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 20px 14px;
}

.bpo-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.bpo-card__tag--click {
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.bpo-card__tag--click:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.bpo-card__tag--matriz { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.bpo-card__tag--filial { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }

.bpo-card__body {
    flex: 1;
    padding: 14px 20px;
    margin: 0 12px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
}

.bpo-card--oficial .bpo-card__body {
    background: rgba(238, 242, 255, 0.65);
    border-color: #e0e7ff;
}

.bpo-card__trial-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 10px;
}

.bpo-card__trial-row span:first-child {
    color: #64748b;
    font-weight: 500;
}

.bpo-card__trial-days {
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
}

.bpo-card__trial-days--ok { background: #fef3c7; color: #d97706; }
.bpo-card__trial-days--warn { background: #fee2e2; color: #dc2626; }
.bpo-card__trial-days--exp { background: #fee2e2; color: #991b1b; }

.bpo-card__progress {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.bpo-card__progress-bar {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.bpo-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bpo-card__stat label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.bpo-card__stat strong {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

.bpo-card__stat strong.text-green { color: #059669; }

.bpo-card__actions {
    display: flex;
    gap: 8px;
    padding: 16px 20px 20px;
    margin-top: auto;
}

.bpo-card__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
}

.bpo-card__btn--primary {
    background: #0f172a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.bpo-card__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.28);
}

.bpo-card--oficial .bpo-card__btn--primary {
    background: linear-gradient(90deg, #0f172a, #1e3a8a);
}

.bpo-card__btn--danger {
    background: #ef4444;
    color: #fff;
}

.bpo-card__btn--icon {
    flex: 0 0 auto;
    width: 44px;
    padding: 0;
    background: #f0fdf4;
    border: 1px solid #10b981;
    color: #10b981;
}

.bpo-card__btn--icon:hover {
    background: #10b981;
    color: #fff;
}

@media (max-width: 900px) {
    .login-view { flex-direction: column; }
    .login-left, .login-right { width: 100%; }
    .login-left { min-height: auto; padding: 80px 32px 48px; }
    .login-right { padding: 40px 24px 48px; }
    .login-brand__features li { min-width: 0; width: 100%; }
}

@media (max-width: 560px) {
    .bpo-clients-grid { grid-template-columns: 1fr; }
}
