/* ═══════════════════════════════════════════════════
   SYN GATE — Custom Branding for Apache Guacamole
   Crimson + Deep Purple + Obsidian Black
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Outfit:wght@300;400;600&family=JetBrains+Mono:wght@400;600&display=swap');

/* === LOGIN PAGE === */
.login-ui {
    background: radial-gradient(circle at 20% 10%, #1a0a2030, transparent 40%),
                radial-gradient(circle at 80% 90%, #ff446620, transparent 40%),
                #080510 !important;
}

.login-ui .login-dialog {
    background: linear-gradient(155deg, #1a1228, #0f0a1a) !important;
    border: 1px solid #4d4060 !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(255, 68, 102, 0.15), 0 0 120px rgba(153, 102, 255, 0.08) !important;
    max-width: 420px !important;
}

.login-ui .login-dialog .header {
    background: linear-gradient(180deg, #2a1f3d, #1a1228) !important;
    border-bottom: 1px solid #4d4060 !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 24px !important;
}

.login-ui .login-dialog .header h1,
.login-ui .login-dialog .header .title {
    font-family: 'Orbitron', monospace !important;
    font-weight: 900 !important;
    letter-spacing: 0.2em !important;
    background: linear-gradient(90deg, #ff4466, #aa77ff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-size: 22px !important;
}

.login-ui .login-dialog .footer,
.login-ui .login-dialog .buttons {
    background: linear-gradient(180deg, #1a1228, #0f0a1a) !important;
    border-top: 1px solid #4d4060 !important;
}

/* input fields */
.login-ui .login-dialog input[type="text"],
.login-ui .login-dialog input[type="password"] {
    background: #0a0510 !important;
    border: 1px solid #4d4060 !important;
    border-radius: 8px !important;
    color: #e5ddf0 !important;
    font-family: 'JetBrains Mono', monospace !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    transition: border-color 0.2s !important;
}

.login-ui .login-dialog input[type="text"]:focus,
.login-ui .login-dialog input[type="password"]:focus {
    border-color: #ff4466 !important;
    outline: none !important;
    box-shadow: 0 0 12px rgba(255, 68, 102, 0.25) !important;
}

/* login button */
.login-ui .login-dialog .buttons input[type="submit"],
.login-ui .login-dialog button,
.login-ui input[type="submit"] {
    background: linear-gradient(135deg, #ff4466, #9966ff) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-family: 'Orbitron', monospace !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    padding: 12px 28px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    transition: all 0.25s !important;
}

.login-ui .login-dialog .buttons input[type="submit"]:hover,
.login-ui .login-dialog button:hover {
    box-shadow: 0 8px 30px rgba(255, 68, 102, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* labels */
.login-ui .login-dialog label {
    color: #b9a8cf !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 10px !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

/* === GLOBAL NAV / HEADER === */
.header {
    background: linear-gradient(180deg, #1a1228, #0a0510) !important;
    border-bottom: 1px solid #4d4060 !important;
}

.header .title {
    font-family: 'Orbitron', monospace !important;
    color: #e5ddf0 !important;
}

/* === CONNECTION LIST / HOME SCREEN === */
.home .recent-connections,
.home {
    background: #080510 !important;
}

.connection.panel,
.recent-connection {
    background: linear-gradient(155deg, #1a1228, #0f0a1a) !important;
    border: 1px solid #4d4060 !important;
    border-radius: 12px !important;
    transition: all 0.25s !important;
}

.connection.panel:hover,
.recent-connection:hover {
    border-color: #ff4466 !important;
    box-shadow: 0 8px 30px rgba(255, 68, 102, 0.2) !important;
}

/* === GENERAL BODY === */
body {
    background: #080510 !important;
    color: #e5ddf0 !important;
    font-family: 'Outfit', -apple-system, sans-serif !important;
}

/* === CLIENT VIEW (remote desktop) === */
.client-display {
    background: #000 !important;
}

/* === STATUS BAR === */
.notification,
.status {
    background: #1a1228 !important;
    border: 1px solid #4d4060 !important;
    color: #e5ddf0 !important;
    border-radius: 8px !important;
}

/* === MENU === */
.menu {
    background: linear-gradient(180deg, #1a1228, #0a0510) !important;
    border: 1px solid #4d4060 !important;
}

.menu a, .menu .menu-item {
    color: #b9a8cf !important;
}

.menu a:hover, .menu .menu-item:hover {
    color: #ff4466 !important;
    background: #2a1f3d !important;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0510; }
::-webkit-scrollbar-thumb { background: #4d4060; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #ff4466; }

/* ═══ REPLACE GUACAMOLE LOGO + TITLE ═══ */

/* hide the original guacamole logo */
.login-ui .logo,
.login-ui .login-dialog .logo,
.login-ui img[src*="logo"],
.login-ui .login-dialog img {
    display: none !important;
}

/* replace "Apache Guacamole" title with our branding */
.login-ui .login-dialog .header h1,
.login-ui .login-dialog .login-title,
.login-ui .login-dialog .header .title,
.login-ui .login-dialog h1 {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    position: relative !important;
}

.login-ui .login-dialog .header h1::before,
.login-ui .login-dialog h1::before {
    content: 'SYN GATE' !important;
    font-family: 'Orbitron', monospace !important;
    font-weight: 900 !important;
    font-size: 28px !important;
    letter-spacing: 0.22em !important;
    background: linear-gradient(90deg, #ff4466, #aa77ff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: block !important;
    text-align: center !important;
    margin-bottom: 4px !important;
}

.login-ui .login-dialog .header h1::after,
.login-ui .login-dialog h1::after {
    content: 'Powered by SynEVOL Incorporated' !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 400 !important;
    font-size: 9px !important;
    letter-spacing: 0.15em !important;
    color: #7a6b8a !important;
    -webkit-text-fill-color: #7a6b8a !important;
    display: block !important;
    text-align: center !important;
    text-transform: uppercase !important;
    margin-top: 6px !important;
}

/* inject our hex logo via the header background */
.login-ui .login-dialog .header {
    padding-top: 70px !important;
    background-image: url('/branding/images/logo-144.png') !important;
    background-repeat: no-repeat !important;
    background-position: center 16px !important;
    background-size: 48px 48px !important;
}

/* hide the version badge in the corner */
.login-ui .version,
.version-label {
    display: none !important;
}

/* ═══ "CHIMERA CLOUD DECK" subtitle ═══ */
.login-ui .login-dialog .header::after {
    content: '── CHIMERA CLOUD DECK ──' !important;
    display: block !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 9px !important;
    letter-spacing: 0.2em !important;
    color: #4d4060 !important;
    text-align: center !important;
    margin-top: 12px !important;
}

/* ═══ KILL THE AVOCADO — force .logo div to use our SVG ═══ */
.login-ui .logo,
div.logo {
    background-image: url('/branding/images/syn-logo.svg') !important;
    background-size: 56px 56px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto !important;
}
