:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --online: #22c55e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Background Blobs */
.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    border-radius: 50%;
}

.blob-1 {
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: pulse 10s infinite alternate;
}

.blob-2 {
    background: #ec4899;
    bottom: -100px;
    left: -100px;
    animation: pulse 15s infinite alternate-reverse;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.2); }
}

/* Glass Container */
.glass-container {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.subtitle {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Cards & Inputs */
.card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Buttons */
.primary-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.secondary-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
}

/* Active State */
.hidden {
    display: none;
}

.status-card {
    display: flex;
    align-items: center;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--online);
    margin-right: 15px;
    box-shadow: 0 0 10px var(--online);
}

.log-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.log-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
}

.log-body {
    height: 150px;
    overflow-y: auto;
    padding: 15px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-item {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
}
