/* Fondo general */
body.bg {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1f2937, #020617);
    color: #f9fafb;
}

/* Contenedor centrado */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* Tarjeta de login */
.card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.card h1 {
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 1.5rem;
}

.subtitle {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Alerta de error */
.alert {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.8);
    color: #fecaca;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

/* Formulario */
.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form label {
    font-size: 0.85rem;
    color: #e5e7eb;
}

.form input {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #4b5563;
    background: #020617;
    color: #f9fafb;
    font-size: 0.9rem;
}

.form input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
}

/* Botón */
.form button {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(to right, #22c55e, #14b8a6);
    color: #0b1120;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}

.form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.25);
    opacity: 0.95;
}

/* Top bar del dashboard */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo-text {
    font-weight: 600;
    font-size: 1rem;
}

.logout-btn {
    text-decoration: none;
    font-size: 0.9rem;
    color: #f9fafb;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.6);
    transition: background 0.1s, color 0.1s;
}

.logout-btn:hover {
    background: #f9fafb;
    color: #020617;
}

/* Contenido del iframe */
.frame-container {
    padding: 14px 16px 16px 16px;
}

.frame-container h2 {
    margin-top: 8px;
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.file-frame {
    margin-top: 12px;
    width: 100%;
    height: calc(100vh - 140px);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #020617;
}
