/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.terminal{flex:1;background:#0a0e27;padding:1rem;overflow:hidden;position:relative}.terminal :global(.xterm){height:100%;width:100%}.terminal :global(.xterm-screen){font-size:14px}.terminal :global(.xterm-viewport){background:#0a0e27}.terminal :global(.xterm-cursor){background-color:#0f0;color:#0a0e27}.terminal :global(.xterm-selection){background:rgba(100,200,255,.3)}@media (max-width: 600px){.terminal{padding:.5rem}.terminal :global(.xterm){font-size:12px}}.app{display:flex;flex-direction:column;height:100vh;background:linear-gradient(135deg,#0a0e27 0%,#1a1f3a 100%);color:#e0e0e0}.app-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:rgba(10,14,39,.8);border-bottom:1px solid rgba(100,200,255,.2);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.header-left{display:flex;align-items:center;gap:1.5rem}.app-header h1{font-size:1.5rem;font-weight:600;letter-spacing:-.5px}.status{font-size:.875rem;padding:.4rem .8rem;background:rgba(100,200,255,.1);border-radius:20px;border:1px solid rgba(100,200,255,.3)}.status.connected{color:#0f0;border-color:#00ff004d}.status.disconnected{color:#ff6b6b;border-color:#ff6b6b4d}.disconnect-btn{padding:.6rem 1.2rem;background:#ff6b6b;color:#fff;border:none;border-radius:6px;font-size:.9rem;cursor:pointer;font-weight:500;transition:all .3s ease}.disconnect-btn:hover{background:#ff5252;transform:translateY(-2px)}.login-container{flex:1;display:flex;align-items:center;justify-content:center;padding:2rem}.login-box{width:100%;max-width:420px;padding:3rem;background:linear-gradient(135deg,rgba(20,25,50,.9) 0%,rgba(30,35,60,.9) 100%);border:1px solid rgba(100,200,255,.2);border-radius:12px;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:0 8px 32px #0000004d}.login-box h2{font-size:2rem;margin-bottom:.5rem;background:linear-gradient(135deg,#64c8ff 0%,#00ff00 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.subtitle{color:#888;font-size:.9rem;margin-bottom:2rem;font-family:monospace}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;font-size:.9rem;color:#aaa;font-weight:500}.form-group input{width:100%;padding:.8rem 1rem;background:rgba(255,255,255,.05);border:1px solid rgba(100,200,255,.2);border-radius:6px;color:#e0e0e0;font-size:1rem;font-family:monospace;transition:all .3s ease}.form-group input:focus{outline:none;border-color:#64c8ff;background:rgba(100,200,255,.1);box-shadow:0 0 10px #64c8ff33}.form-group input:disabled{opacity:.5;cursor:not-allowed}.error-message{padding:.8rem;background:rgba(255,107,107,.1);border:1px solid rgba(255,107,107,.3);color:#ff6b6b;border-radius:6px;margin-bottom:1rem;font-size:.9rem}.connect-btn{width:100%;padding:.9rem;background:linear-gradient(135deg,#64c8ff 0%,#00ff00 100%);color:#0a0e27;border:none;border-radius:6px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease}.connect-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 20px #64c8ff4d}.connect-btn:disabled{opacity:.5;cursor:not-allowed}.info{margin-top:2rem;padding-top:1.5rem;border-top:1px solid rgba(100,200,255,.2);font-size:.85rem;color:#666}.info p{margin:.5rem 0}.app-footer{padding:.8rem 1.5rem;text-align:center;color:#555;font-size:.8rem;border-top:1px solid rgba(100,200,255,.1)}@media (max-width: 600px){.app-header{flex-direction:column;gap:1rem;align-items:flex-start}.header-left,.disconnect-btn{width:100%}.login-box{padding:2rem}.login-box h2{font-size:1.5rem}}
