/* DGUMS Sacred Secure Design - Ultra Secure Movie-Style Interface */

:root {
    --dgums-primary: #0a0e1a;
    --dgums-secondary: #0f1419;
    --dgums-accent: #00d9ff;
    --dgums-accent-secondary: #00ff88;
    --dgums-gold: #ffd700;
    --dgums-success: #00ff88;
    --dgums-danger: #ff0055;
    --dgums-border: rgba(0, 217, 255, 0.3);
    --dgums-glow: rgba(0, 217, 255, 0.6);
    --dgums-grid: rgba(0, 217, 255, 0.1);
}

/* Ultra Secure Background - Movie Style */
body.dgums-sacred {
    background: #0a0e1a;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Hexagonal Grid Overlay */
body.dgums-sacred::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Scanning Line Effect */
body.dgums-sacred::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.8), transparent);
    animation: scan 4s linear infinite;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Terminal-Style Glass Cards */
.dgums-glass {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--dgums-border);
    border-radius: 0;
    box-shadow:
        0 0 1px 1px rgba(0, 217, 255, 0.3),
        0 8px 32px 0 rgba(0, 0, 0, 0.8),
        inset 0 0 80px rgba(0, 217, 255, 0.03);
    position: relative;
}

.dgums-glass::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 217, 255, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dgums-glass:hover::before {
    opacity: 1;
}

.dgums-glass:hover {
    border-color: var(--dgums-accent);
    box-shadow:
        0 0 2px 2px rgba(0, 217, 255, 0.5),
        0 8px 32px 0 rgba(0, 0, 0, 0.8),
        inset 0 0 100px rgba(0, 217, 255, 0.05);
    transition: all 0.3s ease;
}

/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    color: #10b981;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.5);
    }
}

.security-icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}

/* Powered Brand */
.powered-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    color: #93c5fd;
    font-size: 13px;
}

.powered-icon {
    width: 24px;
    height: 24px;
    fill: #3b82f6;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

/* Sacred Logo Glow */
.sacred-logo {
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
    transition: all 0.3s ease;
}

.sacred-logo:hover {
    filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.8));
    transform: scale(1.05);
}

/* Terminal Command Buttons */
.btn-dgums-primary {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--dgums-accent);
    border-radius: 0;
    color: var(--dgums-accent);
    font-weight: 700;
    padding: 14px 28px;
    box-shadow:
        0 0 10px rgba(0, 217, 255, 0.3),
        inset 0 0 10px rgba(0, 217, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.btn-dgums-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-dgums-primary:hover::before {
    left: 100%;
}

.btn-dgums-primary:hover {
    background: rgba(0, 217, 255, 0.2);
    transform: translateY(-2px);
    box-shadow:
        0 0 20px rgba(0, 217, 255, 0.6),
        inset 0 0 20px rgba(0, 217, 255, 0.2);
    color: #fff;
}

/* Terminal Form Inputs */
.form-control-dgums {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--dgums-border);
    border-radius: 0;
    color: var(--dgums-accent);
    padding: 14px 20px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    box-shadow:
        inset 0 0 10px rgba(0, 217, 255, 0.05),
        0 0 5px rgba(0, 217, 255, 0.2);
}

.form-control-dgums:focus {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--dgums-accent);
    box-shadow:
        inset 0 0 20px rgba(0, 217, 255, 0.1),
        0 0 20px rgba(0, 217, 255, 0.4);
    color: #fff;
    outline: none;
}

.form-control-dgums::placeholder {
    color: rgba(0, 217, 255, 0.3);
    font-family: 'Courier New', monospace;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 24px 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 13px;
}

.trust-icon {
    width: 18px;
    height: 18px;
    color: var(--dgums-success);
}

/* Matrix-Style Heading */
.dgums-heading {
    background: linear-gradient(135deg, #00ffff 0%, #00d9ff 50%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-shadow:
        0 0 40px rgba(0, 255, 255, 0.8),
        0 0 80px rgba(0, 217, 255, 0.4);
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.6));
}

/* Floating Particles */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--dgums-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s infinite ease-in-out;
    pointer-events: none;
}

/* Footer Branding */
.dgums-footer {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--dgums-border);
    padding: 32px 0;
    color: #94a3b8;
    font-size: 14px;
}

.dgums-footer-brand {
    color: #cbd5e1;
    font-weight: 600;
}

.dgums-footer-powered {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dgums-footer-powered:hover {
    color: #60a5fa;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

/* ============================================
   LOGIN BACKGROUND SECURITY ELEMENTS
   ============================================ */

/* Floating Code Snippets */
.code-snippet {
    position: absolute;
    opacity: 0;
    animation: float-fade 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes float-fade {
    0% {
        opacity: 0;
        transform: translateY(0px);
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(-15px);
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(0px);
    }
}

/* Binary Code Streams */
.binary-stream {
    position: absolute;
    opacity: 0;
    animation: stream-scroll 12s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes stream-scroll {
    0% {
        opacity: 0;
        transform: translateY(0px);
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(30px);
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(0px);
    }
}

/* Hexadecimal Patterns */
.hex-pattern {
    position: absolute;
    opacity: 0;
    animation: hex-pulse 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes hex-pulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    10% {
        opacity: 1;
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    90% {
        opacity: 1;
    }
}

/* Security Seal Badges */
.security-seal {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 217, 255, 0.6);
        transform: scale(1.05);
    }
}

/* Login Background Container */
.login-bg-code {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   LANDING PAGE TERMINAL DISPLAY
   ============================================ */

.dgums-terminal-display {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--dgums-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 0 40px rgba(0, 217, 255, 0.3),
        inset 0 0 100px rgba(0, 217, 255, 0.05);
}

.terminal-header {
    background: rgba(15, 20, 30, 0.95);
    border-bottom: 1px solid var(--dgums-border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-title {
    margin-left: 12px;
    color: rgba(0, 217, 255, 0.7);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 24px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    min-height: 400px;
}

.terminal-line {
    opacity: 0;
    animation: terminal-fade-in 0.5s forwards;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.terminal-line:hover {
    background: rgba(0, 217, 255, 0.05);
    border-left-color: var(--dgums-accent);
}

@keyframes terminal-fade-in {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.terminal-cursor {
    margin-top: 20px;
}

.blinking-cursor {
    animation: blink 1s infinite;
    color: var(--dgums-accent);
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.terminal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--dgums-border);
}

.stat-box {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid var(--dgums-border);
    padding: 16px;
    border-radius: 4px;
}

.stat-label {
    color: rgba(0, 217, 255, 0.6);
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-value {
    color: var(--dgums-accent);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-bar {
    background: rgba(0, 0, 0, 0.5);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--dgums-accent), var(--dgums-accent-secondary));
    border-radius: 3px;
    animation: stat-fill-pulse 2s infinite;
}

@keyframes stat-fill-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ============================================
   LANDING PAGE NETWORK VISUALIZATION
   ============================================ */

.dgums-network-grid {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--dgums-border);
    border-radius: 8px;
    padding: 24px;
    box-shadow:
        0 0 40px rgba(0, 217, 255, 0.3),
        inset 0 0 100px rgba(0, 217, 255, 0.05);
}

.network-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--dgums-border);
    flex-wrap: wrap;
    gap: 16px;
}

.network-status {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dgums-accent);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    letter-spacing: 1px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.status-dot.status-active {
    background: #00ff88;
    box-shadow: 0 0 20px #00ff88;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.network-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-item {
    color: rgba(0, 217, 255, 0.7);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.network-visualization {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Network Nodes */
.network-node {
    position: absolute;
    z-index: 2;
}

.node-center {
    width: 120px;
    height: 120px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.node-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--dgums-accent);
    border-radius: 50%;
    animation: node-pulse-animation 3s infinite;
}

@keyframes node-pulse-animation {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.node-core {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(0, 255, 136, 0.2));
    border: 2px solid var(--dgums-accent);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dgums-accent);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
    animation: rotate-glow 10s linear infinite;
}

@keyframes rotate-glow {
    0% {
        box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 50px rgba(0, 255, 136, 0.6);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
    }
}

.node-label {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 4px;
    text-align: center;
}

/* Peripheral Nodes */
.node-top-left { top: 10%; left: 15%; }
.node-top-right { top: 10%; right: 15%; }
.node-middle-left { top: 45%; left: 5%; }
.node-middle-right { top: 45%; right: 5%; }
.node-bottom-left { bottom: 10%; left: 15%; }
.node-bottom-right { bottom: 10%; right: 15%; }

.network-node:not(.node-center) {
    width: 80px;
    height: 80px;
}

.node-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid rgba(0, 217, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--dgums-accent);
    transition: all 0.3s ease;
    animation: node-float 3s infinite ease-in-out;
}

@keyframes node-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.network-node:hover .node-icon {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--dgums-accent);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.6);
    transform: scale(1.1);
}

.network-node:not(.node-center) .node-label {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: rgba(0, 217, 255, 0.8);
    font-size: 11px;
}

/* Security Rings */
.security-ring {
    position: absolute;
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: ring-rotate 20s linear infinite;
}

.ring-1 {
    width: 200px;
    height: 200px;
    border-style: dashed;
}

.ring-2 {
    width: 320px;
    height: 320px;
    animation-duration: 25s;
    animation-direction: reverse;
}

.ring-3 {
    width: 440px;
    height: 440px;
    border-style: dashed;
    animation-duration: 30s;
}

@keyframes ring-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Network Footer */
.network-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--dgums-border);
}

.security-badge-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mini-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 4px;
    color: var(--dgums-accent);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.mini-badge:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--dgums-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .terminal-stats {
        grid-template-columns: 1fr;
    }

    .network-visualization {
        height: 400px;
    }

    .node-center {
        width: 80px;
        height: 80px;
    }

    .network-node:not(.node-center) {
        width: 60px;
        height: 60px;
    }

    .node-icon {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }

    .network-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
