* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --borg-black: #000000;
    --borg-dark: #0a0a0a;
    --borg-panel: rgba(5, 5, 5, 0.9);
    --borg-steel: #c0c0c0;
    --borg-teal: #00ff00bd;
    --borg-cyan: #00ff41;
    --borg-red: #ff0040;
    --borg-accent-1: #00cc33;
    --borg-accent-2: #008800;
    --borg-accent-3: #003300;
}

body {
    font-family: "Courier New", monospace;
    background:
        radial-gradient(circle at top, rgba(0, 255, 65, 0.09), transparent 40%),
        radial-gradient(circle at bottom, rgba(0, 204, 51, 0.08), transparent 35%),
        #000000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--borg-steel);
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(0, 255, 0, 0.05) 25%, rgba(0, 255, 0, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 0, 0.05) 75%, rgba(0, 255, 0, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 255, 0, 0.05) 25%, rgba(0, 255, 0, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 0, 0.05) 75%, rgba(0, 255, 0, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
    animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

.scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 2;
    animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
    0% {
        transform: translateY(-100%);
        box-shadow: inset 0 0 30px rgba(0, 255, 0, 0.3);
    }

    50% {
        box-shadow: inset 0 0 30px rgba(0, 255, 0, 0.1);
    }

    100% {
        transform: translateY(100%);
        box-shadow: inset 0 0 30px rgba(0, 255, 0, 0.3);
    }
}

.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 520px;
    padding: 20px;
}

.login-panel {
    background: var(--borg-panel);
    border: 2px solid var(--borg-teal);
    padding: 40px;
    position: relative;
    box-shadow:
        0 0 20px rgba(0, 255, 0, 0.3),
        inset 0 0 20px rgba(0, 255, 0, 0.1),
        0 0 40px rgba(0, 204, 51, 0.2);
    backdrop-filter: blur(10px);
}

.corner-accent {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--borg-teal);
}

.corner-accent.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.corner-accent.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.corner-accent.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.corner-accent.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.header {
    text-align: center;
    margin-bottom: 28px;
    position: relative;
}

.borg-logo {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 0 0 20px var(--borg-teal), 0 0 40px var(--borg-cyan);
    letter-spacing: 3px;
}

.eyebrow {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(192, 192, 192, 0.8);
    margin-bottom: 10px;
}

.header h1 {
    font-size: 30px;
    color: var(--borg-teal);
    text-shadow: 0 0 10px var(--borg-teal), 0 0 20px var(--borg-cyan);
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: normal;
}

.header p {
    font-size: 12px;
    color: var(--borg-steel);
    letter-spacing: 1px;
    opacity: 0.78;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--borg-red);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px rgba(255, 0, 64, 0.8);
}

.provider-panel,
.security-notes {
    border: 1px solid rgba(0, 255, 65, 0.3);
    background:
        linear-gradient(180deg, rgba(0, 255, 65, 0.06), rgba(0, 255, 65, 0.01)),
        rgba(0, 0, 0, 0.42);
    padding: 18px;
    margin-bottom: 18px;
    position: relative;
}

.provider-panel::before,
.security-notes::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 255, 65, 0.08);
    pointer-events: none;
}

.briefing-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--borg-cyan);
    margin-bottom: 10px;
}

.helper-text {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(192, 192, 192, 0.9);
}

.provider-actions {
    display: grid;
    gap: 14px;
}

.social-btn {
    width: 100%;
    border: 1px solid rgba(0, 255, 65, 0.5);
    background:
        linear-gradient(135deg, rgba(0, 255, 65, 0.12), rgba(0, 136, 0, 0.2)),
        rgba(0, 0, 0, 0.55);
    color: var(--borg-steel);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
    font-family: "Courier New", monospace;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.social-flag {
    margin-left: auto;
    flex-shrink: 0;
    padding: 6px 9px;
    border: 1px solid rgba(0, 255, 65, 0.28);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(192, 192, 192, 0.9);
    background: rgba(0, 0, 0, 0.35);
}

.social-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    border-color: var(--borg-cyan);
    box-shadow:
        0 0 24px rgba(0, 255, 65, 0.25),
        inset 0 0 18px rgba(0, 255, 65, 0.08);
}

.social-btn:hover::before {
    transform: translateX(100%);
}

.social-btn:focus-visible {
    outline: 2px solid var(--borg-cyan);
    outline-offset: 3px;
}

.social-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.74;
    border-color: rgba(0, 255, 65, 0.2);
    box-shadow: none;
}

.social-btn[disabled]::before {
    display: none;
}

.social-btn[disabled]:hover {
    transform: none;
    border-color: rgba(0, 255, 65, 0.2);
    box-shadow: none;
}

.social-btn[disabled] .social-title {
    color: rgba(244, 255, 244, 0.82);
}

.social-btn[disabled] .social-subtitle {
    color: rgba(192, 192, 192, 0.62);
}

.social-badge {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 255, 65, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--borg-cyan);
    font-size: 20px;
    font-weight: bold;
    box-shadow: inset 0 0 14px rgba(0, 255, 65, 0.08);
    flex-shrink: 0;
}

.social-btn-discord .social-badge {
    color: #9ba7ff;
    border-color: rgba(155, 167, 255, 0.35);
    box-shadow: inset 0 0 14px rgba(88, 101, 242, 0.12);
}

.social-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.social-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f4fff4;
}

.social-subtitle {
    font-size: 11px;
    letter-spacing: 0.8px;
    color: rgba(192, 192, 192, 0.72);
}

.security-notes {
    display: grid;
    gap: 10px;
}

.security-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 1px;
}

.security-key {
    color: rgba(192, 192, 192, 0.72);
}

.security-value {
    color: var(--borg-cyan);
    text-align: right;
}

.helper-text {
    margin-top: 4px;
}

.footer-text {
    text-align: center;
    font-size: 11px;
    color: var(--borg-steel);
    margin-top: 22px;
    opacity: 0.6;
    letter-spacing: 0.5px;
}

.status-bar {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    font-size: 10px;
    color: var(--borg-steel);
    text-align: center;
    opacity: 0.72;
    letter-spacing: 1px;
}

.status-bar.status-busy {
    color: var(--borg-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

.status-bar.status-error {
    color: var(--borg-red);
    text-shadow: 0 0 10px rgba(255, 0, 64, 0.5);
}

@media (max-width: 600px) {
    body {
        overflow-y: auto;
        align-items: flex-start;
    }

    .container {
        padding: 18px;
    }

    .login-panel {
        padding: 28px 24px 40px;
    }

    .header h1 {
        font-size: 24px;
    }

    .borg-logo {
        font-size: 36px;
    }

    .social-btn {
        padding: 14px;
        gap: 12px;
    }

    .social-flag {
        padding: 5px 8px;
    }

    .security-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .security-value {
        text-align: left;
    }
}
