﻿/* Pantallas de estado: validación de sesión y errores */

body.status-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 16px 32px;
    box-sizing: border-box;
    background: #f1f2f7;
    color: #32323a;
    font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
}

.status-card {
    background: #fff;
    border-radius: 8px;
    border-top: 4px solid #1fb5ad;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    padding: 40px 48px;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    text-align: center;
    font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
}

/* Dentro del layout del panel (por ejemplo, _LayoutAssignee) */
.status-card.status-embedded {
    margin: 40px auto;
}

.status-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon svg {
    width: 28px;
    height: 28px;
}

.status-error { border-top-color: #d9534f; }
.status-error .status-icon { background: #fdecea; color: #d9534f; }

.status-warning { border-top-color: #e08e0b; }
.status-warning .status-icon { background: #fff4e0; color: #e08e0b; }

.status-info { border-top-color: #1fb5ad; }
.status-info .status-icon { background: #e3f6f5; color: #1fb5ad; }

.status-card h1 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px;
    color: #32323a;
}

.status-text,
.status-text p {
    font-size: 14px;
    line-height: 1.55;
    color: #6b6f7b;
    margin: 0 0 8px;
}

.status-text p:last-child { margin-bottom: 0; }
.status-text strong { color: #32323a; }

/* Pantalla de carga */
.status-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    border: 4px solid #e3e5ec;
    border-top-color: #1fb5ad;
    border-radius: 50%;
    animation: status-spin .9s linear infinite;
}

.status-slow { display: none; margin-top: 16px; }

.status-card button {
    margin-top: 20px;
    padding: 8px 20px;
    border: 0;
    border-radius: 4px;
    background: #1fb5ad;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

@keyframes status-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .status-spinner { animation-duration: 3s; }
}

@media (max-width: 480px) {
    body.status-page { padding-top: 40px; }
    .status-card { padding: 32px 24px; }
}
