@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --primary: #00ff9d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system_ui, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e2937 100%);
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel {
	background: rgba(15, 23, 42, 0.95);
	backdrop-filter: blur(20px);
	border: 1px solid #334155;
	border-radius: 20px;
	width: 100%;
	max-width: 520px;
	padding: 40px 30px;
	box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
	text-align: center;
	align-items: center;
}

.header {
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1e2937;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 14px;
    margin-bottom: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #64748b;
}

.connected .dot { 
    background: #00ff9d; 
    animation: pulse 2s infinite; 
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 16px 20px;
    background: #1e2937;
    border: 1px solid #334155;
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 255, 157, 0.2);
}

.btn-login {
    width: 100%;
    height: 64px;
    background: var(--primary);
    color: #0f172a;
    border: none;
    border-radius: 9999px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 255, 157, 0.5);
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 0 40px 15px #00ff9d,
        0 0 80px 25px rgba(0, 255, 157, 0.3);
}

.btn-logout {
	align-content: center;
    width: 100%;
    height: 45px;
    background: var(--primary);
    color: #0f172a;
    border: none;
    border-radius: 9999px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 255, 157, 0.5);
    margin-top: 10px;
}

.btn-logout:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 0 40px 15px #00ff9d,
        0 0 80px 25px rgba(0, 255, 157, 0.3);
}

.links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.links a {
    color: #64748b;
    text-decoration: none;
}

.links a:hover {
    color: #00ff9d;
}

.info {
    font-size: 15px;
    color: #64748b;
    margin-top: 30px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ================== SMALLER PANEL FOR REGISTER PAGE ================== */
.register-panel {
    padding: 28px 30px;           /* reduced from 40px */
    max-width: 480px;             /* slightly narrower too */
}

.register-panel .header {
    margin-bottom: 20px;          /* reduced */
}

.register-panel .status-bar {
    margin-bottom: 22px;
}

.register-panel .form-group {
    margin-bottom: 18px;          /* tighter spacing */
}

.register-panel .btn-login {
    height: 52px;                 /* smaller button */
    font-size: 18px;
}

.register-panel .links {
    margin-top: 22px;
    padding-top: 18px;
}

.register-panel .info {
    margin-top: 22px;
    font-size: 14px;
}